#[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_bytes(bytes: &[u8]) -> Result<(), UleError>
fn validate_bytes(bytes: &[u8]) -> Result<(), UleError>
Validates a byte slice,
&[u8]
. Read moresource§unsafe fn slice_from_bytes_unchecked(bytes: &[u8]) -> &[Self]
unsafe fn slice_from_bytes_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_bytes_to_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
)