pub struct IntegerCodec {
pub codec: Codec,
}Fields§
§codec: CodecImplementations§
Source§impl IntegerCodec
impl IntegerCodec
pub fn compress_bytes(&self, data: &[u8]) -> Result<Vec<u8>>
pub fn decompress_bytes(&self, blob: &[u8]) -> Result<Vec<u8>>
pub fn compress_i64(&self, data: &Vec<i64>) -> Result<Vec<u8>>
pub fn decompress_i64(&self, blob: &[u8]) -> Result<Vec<i64>>
pub fn compress_u64(&self, data: &Vec<u64>) -> Result<Vec<u8>>
pub fn decompress_u64(&self, blob: &[u8]) -> Result<Vec<u64>>
pub fn compress_i32(&self, data: &Vec<i32>) -> Result<Vec<u8>>
pub fn decompress_i32(&self, blob: &[u8]) -> Result<Vec<i32>>
pub fn compress_u32(&self, data: &Vec<u32>) -> Result<Vec<u8>>
pub fn decompress_u32(&self, blob: &[u8]) -> Result<Vec<u32>>
pub fn compress_many_i64(&self, arrays: &[Vec<i64>]) -> Result<Vec<Vec<u8>>>
pub fn decompress_many_i64(&self, blobs: &[Vec<u8>]) -> Result<Vec<Vec<i64>>>
pub fn compress_many_u64(&self, arrays: &[Vec<u64>]) -> Result<Vec<Vec<u8>>>
pub fn decompress_many_u64(&self, blobs: &[Vec<u8>]) -> Result<Vec<Vec<u64>>>
Trait Implementations§
Source§impl Clone for IntegerCodec
impl Clone for IntegerCodec
Source§fn clone(&self) -> IntegerCodec
fn clone(&self) -> IntegerCodec
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 IntegerCodec
impl Debug for IntegerCodec
Auto Trait Implementations§
impl Freeze for IntegerCodec
impl RefUnwindSafe for IntegerCodec
impl Send for IntegerCodec
impl Sync for IntegerCodec
impl Unpin for IntegerCodec
impl UnwindSafe for IntegerCodec
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