An owned UTF-8 string.
struct String<Heap = Libc>
where Heap: Allocator,
{
/* private fields */
}| Name | Description |
|---|---|
| from_bytes | |
| from_bytes_unchecked | |
| new | |
| with_capacity | |
| with_pool |
| Receiver | Name | Description |
|---|---|---|
&self | available | Returns the number of available but unused bytes. |
&self | capacity | Returns the capacity of the string. |
&mut self | push | |
&mut self | push_char | |
&mut self | reserve | Reserves memory for additional bytes. |
&mut self | shrink_to_fit | Minimizes the amount of used memory. |
| Name | Description |
|---|---|
| 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 |
| UndefState | Types that are not valid when they contain certain bit patterns. |