pub struct FourBitMetadata(/* private fields */);Expand description
Four bits of metadata that are stored and retrieved with the plural elements.
Implementations§
Source§impl FourBitMetadata
 
impl FourBitMetadata
Sourcepub fn try_from_byte(byte: u8) -> Option<FourBitMetadata>
 
pub fn try_from_byte(byte: u8) -> Option<FourBitMetadata>
Creates a FourBitMetadata if the given value fits in 4 bits.
Sourcepub fn zero() -> FourBitMetadata
 
pub fn zero() -> FourBitMetadata
Creates a FourBitMetadata with a zero value.
Sourcepub fn get(self) -> u8
 
pub fn get(self) -> u8
Gets the value out of a FourBitMetadata.
Trait Implementations§
Source§impl Clone for FourBitMetadata
 
impl Clone for FourBitMetadata
Source§fn clone(&self) -> FourBitMetadata
 
fn clone(&self) -> FourBitMetadata
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 Debug for FourBitMetadata
 
impl Debug for FourBitMetadata
Source§impl<'de> Deserialize<'de> for FourBitMetadata
 
impl<'de> Deserialize<'de> for FourBitMetadata
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<FourBitMetadata, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<FourBitMetadata, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FourBitMetadata
 
impl PartialEq for FourBitMetadata
Source§impl Serialize for FourBitMetadata
 
impl Serialize for FourBitMetadata
Source§fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
 
fn serialize<__S>(
    &self,
    __serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
    __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for FourBitMetadata
impl Eq for FourBitMetadata
impl StructuralPartialEq for FourBitMetadata
Auto Trait Implementations§
impl Freeze for FourBitMetadata
impl RefUnwindSafe for FourBitMetadata
impl Send for FourBitMetadata
impl Sync for FourBitMetadata
impl Unpin for FourBitMetadata
impl UnwindSafe for FourBitMetadata
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§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more