pub struct Reserved<const N: usize>;Expand description
Sequence of reserved bytes. Doesn’t validate when deserialising, and will serialise to 0.
Trait Implementations§
Source§impl<const N: usize> Cuisiner for Reserved<N>
impl<const N: usize> Cuisiner for Reserved<N>
type Raw<B: ByteOrder> = [u8; N]
Source§fn try_from_raw<B: ByteOrder>(_raw: Self::Raw<B>) -> Result<Self, CuisinerError>
fn try_from_raw<B: ByteOrder>(_raw: Self::Raw<B>) -> Result<Self, CuisinerError>
Attempt to convert this value from a raw value.
Source§fn try_to_raw<B: ByteOrder>(self) -> Result<Self::Raw<B>, CuisinerError>
fn try_to_raw<B: ByteOrder>(self) -> Result<Self::Raw<B>, CuisinerError>
Attempt to convert this value into the raw value.
Source§fn from_bytes<B: ByteOrder>(bytes: &[u8]) -> Result<Self, CuisinerError>
fn from_bytes<B: ByteOrder>(bytes: &[u8]) -> Result<Self, CuisinerError>
Read the provided bytes and attempt to parse out the type.
Auto Trait Implementations§
impl<const N: usize> Freeze for Reserved<N>
impl<const N: usize> RefUnwindSafe for Reserved<N>
impl<const N: usize> Send for Reserved<N>
impl<const N: usize> Sync for Reserved<N>
impl<const N: usize> Unpin for Reserved<N>
impl<const N: usize> UnwindSafe for Reserved<N>
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