#[repr(C, packed(1))]pub struct OptionULE<U>(bool, MaybeUninit<U>);
Expand description
Tuple Fields§
§0: bool
§1: MaybeUninit<U>
Implementations§
Trait Implementations§
source§impl<U: ULE> ULE for OptionULE<U>
impl<U: ULE> ULE for OptionULE<U>
zeroed or valid-T byte sequences to fill it)
source§fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
Validates a byte slice,
&[u8]
. Read moresource§fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
source§unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
Takes a byte slice,
&[u8]
, and return it as &[Self]
with the same lifetime, assuming
that this byte slice has previously been run through Self::parse_byte_slice()
with
success. Read moreimpl<U: Copy> Copy for OptionULE<U>
impl<U: Copy + Eq> Eq for OptionULE<U>
Auto Trait Implementations§
impl<U> Freeze for OptionULE<U>where
U: Freeze,
impl<U> RefUnwindSafe for OptionULE<U>where
U: RefUnwindSafe,
impl<U> Send for OptionULE<U>where
U: Send,
impl<U> Sync for OptionULE<U>where
U: Sync,
impl<U> Unpin for OptionULE<U>where
U: Unpin,
impl<U> UnwindSafe for OptionULE<U>where
U: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)