#[repr(packed)]pub struct OptionULE<U>(_, _);
Expand description
Implementations
Trait Implementations
sourceimpl<U: ULE> ULE for OptionULE<U>
impl<U: ULE> ULE for OptionULE<U>
zeroed or valid-T byte sequences to fill it)
sourcefn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
Validates a byte slice, &[u8]
. Read more
sourcefn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
Parses a byte slice, &[u8]
, and return it as &[Self]
with the same lifetime. Read more
sourceunsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
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 more
impl<U: Copy> Copy for OptionULE<U>
impl<U: Copy + Eq> Eq for OptionULE<U>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more