An owned byte sequence that can be interpreted as a string.
struct ByteString<Heap = Libc>
where Heap: Allocator,
{
/* private fields */
}| Name | Description |
|---|---|
| from_vec | Creates a |
| new | Creates a new allocated |
| Receiver | Name | Description |
|---|---|---|
self | unwrap | Unwraps the vector contained in the string. |
| Name | Description |
|---|---|
| Debug | Objects that can be formatted in a "debug" form. |
| Deref | Objects that implement the immutable dereference operator. |
| DerefMut | Objects that implement the mutable dereference operator. |
| Display | Objects that can be formatted in a "display" form. |
| Eq (9 times) | Objects that implement the binary |
| MaybeClone | Objects that can be duplicated. |
| ToCStr | Objects that can be transformed into |
| UndefState | Types that are not valid when they contain certain bit patterns. |
The Debug implementation prints strings in the formk "string" where all letters that are not in the printable ASCII set are printed as escape sequences of the form \u{number}.
The Display implementation writes the contained bytes directly to the output.