pub enum LogicalEncoder {
None,
Delta,
DeltaRle,
Rle,
}Variants§
Implementations§
Source§impl LogicalEncoder
impl LogicalEncoder
Sourcepub fn encode_u32s(
self,
values: &[u32],
) -> Result<(Vec<u32>, LogicalEncoding), MltError>
pub fn encode_u32s( self, values: &[u32], ) -> Result<(Vec<u32>, LogicalEncoding), MltError>
Logically encode u32 values, returning the physically-stored sequence and the concrete decoder.
LogicalEncoding is derived from the actual data.
See LogicalValue::decode_u32 for the reverse operation.
Sourcepub fn encode_i32s(
self,
values: &[i32],
) -> Result<(Vec<u32>, LogicalEncoding), MltError>
pub fn encode_i32s( self, values: &[i32], ) -> Result<(Vec<u32>, LogicalEncoding), MltError>
Logically encode i32 values into the u32 physical representation.
LogicalEncoding is derived from the actual data.
See LogicalValue::decode_i32 for the reverse operation.
Sourcepub fn encode_u64s(
self,
values: &[u64],
) -> Result<(Vec<u64>, LogicalEncoding), MltError>
pub fn encode_u64s( self, values: &[u64], ) -> Result<(Vec<u64>, LogicalEncoding), MltError>
Logically encode u64 values into the u64 physical representation.
LogicalEncoding is derived from the actual data.
See LogicalValue::decode_u64 for the reverse operation.
Sourcepub fn encode_i64s(
self,
values: &[i64],
) -> Result<(Vec<u64>, LogicalEncoding), MltError>
pub fn encode_i64s( self, values: &[i64], ) -> Result<(Vec<u64>, LogicalEncoding), MltError>
Logically encode i64 values into the u64 physical representation.
LogicalEncoding is derived from the actual data.
See LogicalValue::decode_i64 for the reverse operation.
Trait Implementations§
Source§impl Clone for LogicalEncoder
impl Clone for LogicalEncoder
Source§fn clone(&self) -> LogicalEncoder
fn clone(&self) -> LogicalEncoder
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 LogicalEncoder
impl Debug for LogicalEncoder
Source§impl Default for LogicalEncoder
impl Default for LogicalEncoder
Source§fn default() -> LogicalEncoder
fn default() -> LogicalEncoder
Returns the “default value” for a type. Read more
Source§impl IntoEnumIterator for LogicalEncoder
impl IntoEnumIterator for LogicalEncoder
type Iterator = LogicalEncoderIter
fn iter() -> LogicalEncoderIter ⓘ
Source§impl PartialEq for LogicalEncoder
impl PartialEq for LogicalEncoder
impl Copy for LogicalEncoder
impl Eq for LogicalEncoder
impl StructuralPartialEq for LogicalEncoder
Auto Trait Implementations§
impl Freeze for LogicalEncoder
impl RefUnwindSafe for LogicalEncoder
impl Send for LogicalEncoder
impl Sync for LogicalEncoder
impl Unpin for LogicalEncoder
impl UnsafeUnpin for LogicalEncoder
impl UnwindSafe for LogicalEncoder
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