[go: up one dir, main page]

pub struct Slice<'de> { /* private fields */ }
Expand description

A simple Flavor representing the deserialization from a borrowed slice

Implementations

Create a new Slice from the given buffer

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

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.