pub struct Bytes { /* fields omitted */ }
Expand description
Construct a new bytes container.
Construct a new bytes container with the specified capacity.
Construct from a byte vector.
Do something with the bytes.
Do something with the bytes.
Test if the collection is empty.
Get the length of the bytes collection.
Get the capacity of the bytes collection.
Get the bytes collection.
Reserve additional space.
The exact amount is unspecified.
Resever additional space to the exact amount specified.
Shrink to fit the amount of bytes in the container.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Mutably dereferences the value.
Try to convert to the given type, from the given value.
Hook to install more things into the module.
The generic name of the named thing.
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Convert into a type hash.
Access diagnostical information on the value type.
The output type from the unsafe coercion.
Convert the given reference using unsafe assumptions to a value. Read more
Coerce the output of an unsafe from value into the final output type. Read more
The output type from the unsafe coercion.
Convert the given reference using unsafe assumptions to a value. Read more
Coerce the output of an unsafe from value into the final output type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.