pub struct ScaledPackingParams {
pub encoded_values: usize,
pub reference_value: f32,
pub binary_scale: i16,
pub decimal_scale: i16,
pub bits_per_value: u8,
pub original_field_type: u8,
}Expand description
Scaling parameters shared by GRIB1 and GRIB2 grid-point packing.
Decoded values use (reference + packed * 2^binary_scale) * 10^-decimal_scale.
Fields§
§encoded_values: usize§reference_value: f32§binary_scale: i16§decimal_scale: i16§bits_per_value: u8§original_field_type: u8Trait Implementations§
Source§impl Clone for ScaledPackingParams
impl Clone for ScaledPackingParams
Source§fn clone(&self) -> ScaledPackingParams
fn clone(&self) -> ScaledPackingParams
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 ScaledPackingParams
impl Debug for ScaledPackingParams
Source§impl PartialEq for ScaledPackingParams
impl PartialEq for ScaledPackingParams
impl StructuralPartialEq for ScaledPackingParams
Auto Trait Implementations§
impl Freeze for ScaledPackingParams
impl RefUnwindSafe for ScaledPackingParams
impl Send for ScaledPackingParams
impl Sync for ScaledPackingParams
impl Unpin for ScaledPackingParams
impl UnsafeUnpin for ScaledPackingParams
impl UnwindSafe for ScaledPackingParams
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