Struct lrs::string::ByteStr

A borrowed byte sequence that can be interpreted as a string.

Syntax

struct ByteStr {
    /* private fields */
}

Methods

ReceiverNameDescription
&selfstarts_with

Returns whether the string starts with a byte slice.

&selftrim

Returns a byte string created by removing spaces and tabs from the start and end of the string.

Trait implementations

NameDescription
AsMutNoNullStr

Objects that can be borrowed as a mutable NoNullStr.

AsNoNullStr

Objects that can be borrowed as a NoNullStr.

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

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

Index (5 times)

Objects that implement the immutable subscript operator.

IndexMut (5 times)

Objects that implement the mutable subscript operator.

Ord

Objects that are part of a total order.

Parse

Types that can be parsed.

PartialOrd

Objects that implement the binary <, <=, >, and >= operators.

ToCStr

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

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.