pub struct Coded<'a> { /* private fields */ }Expand description
The codes of a compressed column and the table they are against.
Handed out by Vector::coded_parts so a kernel can work in code space. Nothing here
decompresses, which is the point: Self::encode puts the literal into the same space the rows
are already in, and after that an equality test is a byte slice comparison.
Implementations§
Source§impl Coded<'_>
impl Coded<'_>
Sourcepub fn table(&self) -> &SymbolTable
pub fn table(&self) -> &SymbolTable
The table every row in this vector is compressed against.
Sourcepub fn encode(&self, bytes: &[u8]) -> Vec<u8> ⓘ
pub fn encode(&self, bytes: &[u8]) -> Vec<u8> ⓘ
Some bytes in the code space this vector is in.
The literal side of an equality filter. Compressing is a function of the table and the bytes, so two strings compress to the same codes exactly when they are the same string, and an equality test on the codes is an equality test on the strings with no decompression in it.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Coded<'a>
impl<'a> RefUnwindSafe for Coded<'a>
impl<'a> Send for Coded<'a>
impl<'a> Sync for Coded<'a>
impl<'a> Unpin for Coded<'a>
impl<'a> UnsafeUnpin for Coded<'a>
impl<'a> UnwindSafe for Coded<'a>
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