pub struct Slice<'de> { /* private fields */ }
Expand description
A simple Flavor
representing the deserialization from a borrowed slice
Create a new Slice from the given buffer
Return the remaining (unused) bytes in the Deserializer
The remaining data of this flavor after deserializing has completed.
Read more
The source of data retrieved for deserialization.
Read more
Obtain the next byte for deserialization
Attempt to take the next ct
bytes from the serialized message
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.