Module lrs::string

String types.

Types

KindNameDescription
Trait AsByteStr

Objects that can be borrowed as a byte string.

Trait AsCStr

Objects that can be interpreted as CStrs.

Trait AsMutByteStr

Objects that can be mutably borrowed as a byte string.

Trait AsMutCStr

Objects that can be interpreted as mutable CStrs.

Trait AsMutNoNullStr

Objects that can be borrowed as a mutable NoNullStr.

Trait AsNoNullStr

Objects that can be borrowed as a NoNullStr.

Struct ByteStr

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

Struct ByteString

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

Struct CPtrPtr

A helper type for creating *const *const c_char objects.

Struct CStr

A byte slice that has exactly one null byte at the very end.

Struct CString

An owned byte slice that has exactly one null byte at the very end.

Struct NoNullStr

A byte slice with no null bytes.

Struct NoNullString

An owned byte slice with no null bytes.

Struct String

An owned UTF-8 string.

Trait ToCStr

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

Trait ToCString

Objects that can be turned into a CString by allocating.