pub struct CodecSelector;Expand description
Automatic codec selection based on data characteristics.
Implementations§
Source§impl CodecSelector
impl CodecSelector
Sourcepub fn select_for_integers(values: &[u64]) -> CompressionCodec
pub fn select_for_integers(values: &[u64]) -> CompressionCodec
Selects the best codec for a slice of u64 values.
Sourcepub fn select_for_strings(values: &[&str]) -> CompressionCodec
pub fn select_for_strings(values: &[&str]) -> CompressionCodec
Selects the best codec for a slice of strings.
Sourcepub fn select_for_booleans(_values: &[bool]) -> CompressionCodec
pub fn select_for_booleans(_values: &[bool]) -> CompressionCodec
Selects the best codec for boolean values.
Auto Trait Implementations§
impl Freeze for CodecSelector
impl RefUnwindSafe for CodecSelector
impl Send for CodecSelector
impl Sync for CodecSelector
impl Unpin for CodecSelector
impl UnwindSafe for CodecSelector
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