pub struct ByteBoolean<const N: usize = 1>(/* private fields */);Expand description
A boolean value represented with some number of bytes, where non-zero is true, and zero is false.
Trait Implementations§
Source§impl<const N: usize> Clone for ByteBoolean<N>
impl<const N: usize> Clone for ByteBoolean<N>
Source§fn clone(&self) -> ByteBoolean<N>
fn clone(&self) -> ByteBoolean<N>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const N: usize> Cuisiner for ByteBoolean<N>
impl<const N: usize> Cuisiner for ByteBoolean<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.
Source§impl<const N: usize> Debug for ByteBoolean<N>
impl<const N: usize> Debug for ByteBoolean<N>
Source§impl<const N: usize> Deref for ByteBoolean<N>
impl<const N: usize> Deref for ByteBoolean<N>
impl<const N: usize> Copy for ByteBoolean<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for ByteBoolean<N>
impl<const N: usize> RefUnwindSafe for ByteBoolean<N>
impl<const N: usize> Send for ByteBoolean<N>
impl<const N: usize> Sync for ByteBoolean<N>
impl<const N: usize> Unpin for ByteBoolean<N>
impl<const N: usize> UnwindSafe for ByteBoolean<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