pub struct RunLengthPackingParams {
pub encoded_values: usize,
pub bits_per_value: u8,
pub max_level_value: u16,
pub decimal_scale: i16,
pub level_values: Vec<u16>,
}Expand description
Parameters for run-length packing with level values (Template 5.200).
Packed level zero represents a missing value. Codes from one through
max_level_value index the corresponding scaled entry in level_values.
Fields§
§encoded_values: usize§bits_per_value: u8§max_level_value: u16§decimal_scale: i16§level_values: Vec<u16>Implementations§
Source§impl RunLengthPackingParams
impl RunLengthPackingParams
Sourcepub fn representative_value(&self, level: u16) -> Option<f64>
pub fn representative_value(&self, level: u16) -> Option<f64>
Returns the decoded representative value for a nonzero level code.
Trait Implementations§
Source§impl Clone for RunLengthPackingParams
impl Clone for RunLengthPackingParams
Source§fn clone(&self) -> RunLengthPackingParams
fn clone(&self) -> RunLengthPackingParams
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 moreSource§impl Debug for RunLengthPackingParams
impl Debug for RunLengthPackingParams
impl Eq for RunLengthPackingParams
Source§impl PartialEq for RunLengthPackingParams
impl PartialEq for RunLengthPackingParams
impl StructuralPartialEq for RunLengthPackingParams
Auto Trait Implementations§
impl Freeze for RunLengthPackingParams
impl RefUnwindSafe for RunLengthPackingParams
impl Send for RunLengthPackingParams
impl Sync for RunLengthPackingParams
impl Unpin for RunLengthPackingParams
impl UnsafeUnpin for RunLengthPackingParams
impl UnwindSafe for RunLengthPackingParams
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