Struct lrs::string::ByteString

An owned byte sequence that can be interpreted as a string.

Syntax

struct ByteString<Heap = Libc>
    where Heap: Allocator,
{
    /* private fields */
}

Static methods

NameDescription
from_vec

Creates a ByteString by wrapping a vector.

new

Creates a new allocated ByteString.

Methods

ReceiverNameDescription
selfunwrap

Unwraps the vector contained in the string.

Trait implementations

NameDescription
Debug

Objects that can be formatted in a "debug" form.

Deref

Objects that implement the immutable dereference operator.

DerefMut

Objects that implement the mutable dereference operator.

Display

Objects that can be formatted in a "display" form.

Eq (9 times)

Objects that implement the binary == and != operators.

MaybeClone

Objects that can be duplicated.

ToCStr

Objects that can be transformed into CStrs provided they have some scratch space available.

UndefState

Types that are not valid when they contain certain bit patterns.

Remarks

The Debug implementation prints strings in the formk "string" where all letters that are not in the printable ASCII set are printed as escape sequences of the form \u{number}.

The Display implementation writes the contained bytes directly to the output.