Struct grib::ScanningMode
source · pub struct ScanningMode(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl ScanningMode
impl ScanningMode
sourcepub fn scans_positively_for_i(&self) -> bool
pub fn scans_positively_for_i(&self) -> bool
Returns true
if points of the first row or column scan in the +i
(+x
) direction.
§Examples
assert_eq!(
grib::ScanningMode(0b00000000).scans_positively_for_i(),
true
);
sourcepub fn scans_positively_for_j(&self) -> bool
pub fn scans_positively_for_j(&self) -> bool
Returns true
if points of the first row or column scan in the +j
(+y
) direction.
§Examples
assert_eq!(
grib::ScanningMode(0b00000000).scans_positively_for_j(),
false
);
sourcepub fn is_consecutive_for_i(&self) -> bool
pub fn is_consecutive_for_i(&self) -> bool
Returns true
if adjacent points in i
(x
) direction are
consecutive.
§Examples
assert_eq!(grib::ScanningMode(0b00000000).is_consecutive_for_i(), true);
sourcepub fn scans_alternating_rows(&self) -> bool
pub fn scans_alternating_rows(&self) -> bool
Returns true
if adjacent rows scans in the opposite direction.
§Examples
assert_eq!(
grib::ScanningMode(0b00000000).scans_alternating_rows(),
false
);
Trait Implementations§
source§impl Clone for ScanningMode
impl Clone for ScanningMode
source§fn clone(&self) -> ScanningMode
fn clone(&self) -> ScanningMode
Returns a copy of the value. Read more
1.0.0 · 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 ScanningMode
impl Debug for ScanningMode
source§impl PartialEq for ScanningMode
impl PartialEq for ScanningMode
source§fn eq(&self, other: &ScanningMode) -> bool
fn eq(&self, other: &ScanningMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScanningMode
impl Eq for ScanningMode
impl StructuralPartialEq for ScanningMode
Auto Trait Implementations§
impl Freeze for ScanningMode
impl RefUnwindSafe for ScanningMode
impl Send for ScanningMode
impl Sync for ScanningMode
impl Unpin for ScanningMode
impl UnwindSafe for ScanningMode
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)