pub struct Code {
pub spectrals: SpectralVec,
pub blooms: BloomVec,
pub classes: ClassVec,
}Expand description
A fully-encoded token.
Invariant: spectrals.len() == blooms.len() and equals either 1 or 2
(2 only when the token contains ambiguous phonemes like G/ج).
Fields§
§spectrals: SpectralVec32-bit packed spectral keys. First key is always the primary variant.
blooms: BloomVec64-bit Bloom signatures, index-aligned with spectrals.
classes: ClassVecThe class sequence from the primary variant (for debugging / re-analysis).
Implementations§
Trait Implementations§
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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