#[non_exhaustive]pub struct SimplePacking {
pub reference: f32,
pub binary_scale: i16,
pub decimal_scale: i16,
pub bits: u8,
pub count: u32,
}Expand description
Simple packing’s parameters: data representation template 5.0.
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.
bits: u8Bits per packed value, 0 to 32.
count: u32How many values are packed: the grid points the bitmap marks, or all of them.
Implementations§
Trait Implementations§
Source§impl Clone for SimplePacking
impl Clone for SimplePacking
Source§fn clone(&self) -> SimplePacking
fn clone(&self) -> SimplePacking
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 SimplePacking
Source§impl Debug for SimplePacking
impl Debug for SimplePacking
Source§impl<'de> Deserialize<'de> for SimplePacking
impl<'de> Deserialize<'de> for SimplePacking
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 SimplePacking
impl PartialEq for SimplePacking
Source§fn eq(&self, other: &SimplePacking) -> bool
fn eq(&self, other: &SimplePacking) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SimplePacking
impl Serialize for SimplePacking
impl StructuralPartialEq for SimplePacking
Auto Trait Implementations§
impl Freeze for SimplePacking
impl RefUnwindSafe for SimplePacking
impl Send for SimplePacking
impl Sync for SimplePacking
impl Unpin for SimplePacking
impl UnsafeUnpin for SimplePacking
impl UnwindSafe for SimplePacking
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