Struct parity_scale_codec::DecodeFinished
source · 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§
source§impl DecodeFinished
impl DecodeFinished
sourcepub unsafe fn assert_decoding_finished() -> DecodeFinished
pub unsafe fn assert_decoding_finished() -> DecodeFinished
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.