An owned byte slice with no null bytes.
struct NoNullString<Heap = Libc>
where Heap: Allocator,
{
/* private fields */
}| Name | Description |
|---|---|
| buffered | Creates a |
| from_bytes | |
| from_bytes_unchecked | Creates a |
| new | Creates a new, allocated |
| Receiver | Name | Description |
|---|---|---|
&mut self | clear | Truncates the string to length |
&mut self | pop_file | Removes the file-part of the string, returning a reference to it. |
&mut self | push_file | Appends a filename to the string. |
&mut self | reserve | Reserves memory for new bytes in the string. |
&mut self | set_len | Truncates the string to a certain size that can be greater than the current size. |
&mut self | set_path | Clears the string and sets it to a new value. |
&mut self | truncate | Truncates the string to a certain size. |
&mut self | unused | Returns a slice to the unused but reserved memory in the underlying vector. |
| Name | Description |
|---|---|
| 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 (9 times) | Objects that implement the binary |
| UndefState | Types that are not valid when they contain certain bit patterns. |