Struct lrs::string::String

An owned UTF-8 string.

Syntax

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

Static methods

NameDescription
from_bytes
from_bytes_unchecked
new
with_capacity
with_pool

Methods

ReceiverNameDescription
&selfavailable

Returns the number of available but unused bytes.

&selfcapacity

Returns the capacity of the string.

&mut selfpush
&mut selfpush_char
&mut selfreserve

Reserves memory for additional bytes.

&mut selfshrink_to_fit

Minimizes the amount of used memory.

Trait implementations

NameDescription
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 (9 times)

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

UndefState

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