#[non_exhaustive]pub struct ComplexPacking {Show 14 fields
pub reference: f32,
pub binary_scale: i16,
pub decimal_scale: i16,
pub count: u32,
pub group_reference_bits: u8,
pub missing_values: u8,
pub groups: u32,
pub width_reference: u8,
pub width_bits: u8,
pub length_reference: u32,
pub length_increment: u8,
pub last_length: u32,
pub length_bits: u8,
pub spatial_differencing: Option<SpatialDifferencing>,
}Expand description
Complex packing’s parameters: data representation templates 5.2 and 5.3.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.reference: f32The reference value R, as written (a 32-bit float).
binary_scale: i16The binary scale factor E.
decimal_scale: i16The decimal scale factor D.
count: u32How many values are packed: the grid points the bitmap marks, or all of them.
group_reference_bits: u8Bits per group reference.
missing_values: u8How missing values are marked (code table 5.5): 0 not at all, 1 primary, 2 primary and secondary.
groups: u32The number of groups.
width_reference: u8The reference for group widths, bits.
width_bits: u8Bits per group width.
length_reference: u32The reference for group lengths.
length_increment: u8The increment for group lengths.
last_length: u32The last group’s length, as it is.
length_bits: u8Bits per scaled group length.
spatial_differencing: Option<SpatialDifferencing>Template 5.3’s spatial differencing; None for 5.2.
Implementations§
Trait Implementations§
Source§impl Clone for ComplexPacking
impl Clone for ComplexPacking
Source§fn clone(&self) -> ComplexPacking
fn clone(&self) -> ComplexPacking
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 ComplexPacking
Source§impl Debug for ComplexPacking
impl Debug for ComplexPacking
Source§impl<'de> Deserialize<'de> for ComplexPacking
impl<'de> Deserialize<'de> for ComplexPacking
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComplexPacking
impl PartialEq for ComplexPacking
Source§fn eq(&self, other: &ComplexPacking) -> bool
fn eq(&self, other: &ComplexPacking) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComplexPacking
impl Serialize for ComplexPacking
impl StructuralPartialEq for ComplexPacking
Auto Trait Implementations§
impl Freeze for ComplexPacking
impl RefUnwindSafe for ComplexPacking
impl Send for ComplexPacking
impl Sync for ComplexPacking
impl Unpin for ComplexPacking
impl UnsafeUnpin for ComplexPacking
impl UnwindSafe for ComplexPacking
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