#[repr(C, packed(1))]pub struct OptionULE<U>(/* private fields */);
Expand description
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 moreSource§fn as_byte_slice(slice: &[Self]) -> &[u8]
fn as_byte_slice(slice: &[Self]) -> &[u8]
impl<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