pub struct Grib1SecondOrderPackingParams { /* private fields */ }Expand description
Validated parameters for standard GRIB1 grid-point second-order packing.
Implementations§
Source§impl Grib1SecondOrderPackingParams
impl Grib1SecondOrderPackingParams
pub const fn packing(&self) -> &ScaledPackingParams
pub const fn layout(&self) -> Grib1SecondOrderLayout
pub const fn group_count(&self) -> usize
Sourcepub fn group_widths(&self) -> &[u8] ⓘ
pub fn group_widths(&self) -> &[u8] ⓘ
Returns one width for constant-width packing or one width per group for row-by-row and variable-width packing.
Sourcepub fn group_lengths(&self) -> &[usize]
pub fn group_lengths(&self) -> &[usize]
Returns secondary-bitmap group lengths. Row-by-row lengths are supplied from the grid and primary bitmap when the field is indexed.
Sourcepub const fn first_order_values_offset(&self) -> usize
pub const fn first_order_values_offset(&self) -> usize
Byte offset of first-order values relative to GRIB1 BDS octet 12.
Sourcepub const fn second_order_values_offset(&self) -> usize
pub const fn second_order_values_offset(&self) -> usize
Byte offset of second-order values relative to GRIB1 BDS octet 12.
pub const fn unused_bits(&self) -> u8
Sourcepub fn group_width(&self, group_index: usize) -> Option<u8>
pub fn group_width(&self, group_index: usize) -> Option<u8>
Returns the second-order width for one group.
Trait Implementations§
Source§impl Clone for Grib1SecondOrderPackingParams
impl Clone for Grib1SecondOrderPackingParams
Source§fn clone(&self) -> Grib1SecondOrderPackingParams
fn clone(&self) -> Grib1SecondOrderPackingParams
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 StructuralPartialEq for Grib1SecondOrderPackingParams
Auto Trait Implementations§
impl Forget for Grib1SecondOrderPackingParams
impl Freeze for Grib1SecondOrderPackingParams
impl RefUnwindSafe for Grib1SecondOrderPackingParams
impl Send for Grib1SecondOrderPackingParams
impl Sync for Grib1SecondOrderPackingParams
impl Unpin for Grib1SecondOrderPackingParams
impl UnsafeUnpin for Grib1SecondOrderPackingParams
impl UnwindSafe for Grib1SecondOrderPackingParams
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