pub fn read(self) -> Result<T, Error> {
        let mut value: MaybeUninit<T> = MaybeUninit::uninit();

        self.read_into(&mut value)?;

        // SAFETY: If read_into returns Ok, this is initialized.
        unsafe { Ok(value.assume_init()) }
    }
/// A maximally safe option for reading user data.
///
/// The value will be put on the stack, so this may be unsuitable for
/// particularly large structures.
A maximally safe option for reading user data.
The value will be put on the stack, so this may be unsuitable for
particularly large structures.
A maximally safe option for reading user data . The value will be put on the stack so this may be unsuitable for particularly large structures .
pub fn read(self) -> Result<T, Error> {
        let mut value: MaybeUninit<T> = MaybeUninit::uninit();
        self.read_into(&mut value)?;
        // SAFETY: If read_into returns Ok, this is initialized.
        unsafe { Ok(value.assume_init()) }
    }
pub fn read ( self ) -> Result < T , Error > { let mut value : MaybeUninit < T > = MaybeUninit :: uninit ( ) ; self . read_into ( & mut value ) ? ; // SAFETY: If read_into returns Ok, this is initialized. unsafe { Ok ( value . assume_init ( ) ) } }
A maximally safe option for reading user data.
A maximally safe option for reading user data .
self