pub enum WordMetadata {
Data = 0,
SemanticOutlier = 1,
Residual = 2,
Continuation = 3,
EndOfSequence = 4,
Parity = 5,
}Expand description
Metadata flags stored in the upper 3 bits
Variants§
Data = 0
Standard data word
SemanticOutlier = 1
Semantic outlier marker
Residual = 2
Residual correction word
Continuation = 3
Continuation of previous word
EndOfSequence = 4
End of sequence marker
Parity = 5
Parity check word
Trait Implementations§
Source§impl Clone for WordMetadata
impl Clone for WordMetadata
Source§fn clone(&self) -> WordMetadata
fn clone(&self) -> WordMetadata
Returns a duplicate 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 WordMetadata
impl Debug for WordMetadata
Source§impl<'de> Deserialize<'de> for WordMetadata
impl<'de> Deserialize<'de> for WordMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WordMetadata
impl PartialEq for WordMetadata
Source§impl Serialize for WordMetadata
impl Serialize for WordMetadata
impl Copy for WordMetadata
impl Eq for WordMetadata
impl StructuralPartialEq for WordMetadata
Auto Trait Implementations§
impl Freeze for WordMetadata
impl RefUnwindSafe for WordMetadata
impl Send for WordMetadata
impl Sync for WordMetadata
impl Unpin for WordMetadata
impl UnwindSafe for WordMetadata
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