Struct lrs::string::CString

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

Syntax

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

Static methods

NameDescription
from_bytes_unchecked

Creates a CString by wrapping a vector without checking the vector for validity.

Trait implementations

NameDescription
Debug

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

Deref

Objects that implement the immutable dereference operator.

Eq (9 times)

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

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.