A borrowed byte sequence that can be interpreted as a string.
struct ByteStr {
/* private fields */
}| Receiver | Name | Description |
|---|---|---|
&self | starts_with | Returns whether the string starts with a byte slice. |
&self | trim | Returns a byte string created by removing spaces and tabs from the start and end of the string. |
| Name | Description |
|---|---|
| AsMutNoNullStr | Objects that can be borrowed as a mutable |
| AsNoNullStr | Objects that can be borrowed as a |
| 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 | Objects that implement the binary |
| Index (5 times) | Objects that implement the immutable subscript operator. |
| IndexMut (5 times) | Objects that implement the mutable subscript operator. |
| Ord | Objects that are part of a total order. |
| Parse | Types that can be parsed. |
| PartialOrd | Objects that implement the binary |
| ToCStr | Objects that can be transformed into |
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.