pub struct AlpEncoder;Expand description
ALP float encoder (SIGMOD 2024).
Implementations§
Source§impl AlpEncoder
impl AlpEncoder
Sourcepub fn encode(values: &[f64]) -> Result<Vec<u8>>
pub fn encode(values: &[f64]) -> Result<Vec<u8>>
Encode a sequence of f64 values with ALP.
§Errors
Returns EncodingError::EmptyInput if values is empty, or
EncodingError::CorruptData if the block is longer than u32::MAX.
Trait Implementations§
Source§impl Clone for AlpEncoder
impl Clone for AlpEncoder
Source§fn clone(&self) -> AlpEncoder
fn clone(&self) -> AlpEncoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AlpEncoder
Auto Trait Implementations§
impl Freeze for AlpEncoder
impl RefUnwindSafe for AlpEncoder
impl Send for AlpEncoder
impl Sync for AlpEncoder
impl Unpin for AlpEncoder
impl UnsafeUnpin for AlpEncoder
impl UnwindSafe for AlpEncoder
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