pub struct DecodeFinished(_);
Expand description

A zero-sized type signifying that the decoding finished.

To be used in [Decode::decode_into] to allow the implementation to explicitly assert that the MaybeUninit passed into that function was properly initialized.

Implementations§

Assert that the decoding has finished.

Safety

Should be used in [Decode::decode_into] to signify that the MaybeUninit passed into that function was properly initialized.

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.