pub struct DecodeFinished(/* private fields */);
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.
Auto Trait Implementations§
impl Freeze for DecodeFinished
impl RefUnwindSafe for DecodeFinished
impl !Send for DecodeFinished
impl !Sync for DecodeFinished
impl Unpin for DecodeFinished
impl UnwindSafe for DecodeFinished
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more