A byte slice that has exactly one null byte at the very end.
struct CStr {
/* private fields */
}| Name | Description |
|---|---|
| empty | Returns an empty |
| from_bytes_unchecked | Casts a byte slice to a |
| from_mut_bytes_unchecked | Casts a byte slice to a mutable |
| from_ptr | Creates a new |
| Receiver | Name | Description |
|---|---|---|
&mut self | as_mut_ptr | Returns a mutable pointer to the first byte in the |
&self | as_ptr | Returns a pointer to the first byte in the |
&self | bytes_with_null | Returns the contained bytes including the null byte. |
| Name | Description |
|---|---|
| AsCStr | Objects that can be interpreted as |
| AsMutCStr | Objects that can be interpreted as mutable |
| 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. |
| Eq | Objects that implement the binary |
| Index (5 times) | Objects that implement the immutable subscript operator. |
| IndexMut (4 times) | Objects that implement the mutable subscript operator. |
| Parse | Types that can be parsed. |
| ToCStr | Objects that can be transformed into |