Struct lrs::string::NoNullStr

A byte slice with no null bytes.

Syntax

struct NoNullStr {
    /* private fields */
}

Static methods

NameDescription
from_bytes_unchecked

Casts a byte slice to a NoNullStr without checking it for validity.

from_mut_bytes_unchecked

Casts a byte slice to a mutable NoNullStr without checking it for validity.

Methods

ReceiverNameDescription
&selfdir

Returns a NoNullStr that consists of the segment before the last '/'.

&mut selfdir_mut

Returns a mutable NoNullStr that consists of the segment before the last '/'.

&selffile

Returns a NoNullStr that consists of the segment after the last '/'.

&mut selffile_mut

Returns a mutable NoNullStr that consists of the segment after the last '/'.

&mut selfset

Sets a byte in the slice to a value.

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.

Display

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

Eq

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

Index (4 times)

Objects that implement the immutable subscript operator.

IndexMut (4 times)

Objects that implement the mutable subscript operator.

ToCStr

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