Struct grib::ProjectionCentreFlag
source · pub struct ProjectionCentreFlag(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl ProjectionCentreFlag
impl ProjectionCentreFlag
sourcepub fn contains_north_pole_on_projection_plane(&self) -> bool
pub fn contains_north_pole_on_projection_plane(&self) -> bool
Returns true
if North Pole is on the projection plane. Otherwise (i.e.
if South Pole is on), returns false
.
§Examples
assert_eq!(
grib::ProjectionCentreFlag(0b00000000).contains_north_pole_on_projection_plane(),
true
);
sourcepub fn is_bipolar(&self) -> bool
pub fn is_bipolar(&self) -> bool
Returns true
if projection is bipolar and symmetric. Otherwise (i.e.
if only one projection centre is used), returns false
.
§Examples
assert_eq!(grib::ProjectionCentreFlag(0b00000000).is_bipolar(), false);
Trait Implementations§
source§impl Clone for ProjectionCentreFlag
impl Clone for ProjectionCentreFlag
source§fn clone(&self) -> ProjectionCentreFlag
fn clone(&self) -> ProjectionCentreFlag
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 ProjectionCentreFlag
impl Debug for ProjectionCentreFlag
source§impl PartialEq for ProjectionCentreFlag
impl PartialEq for ProjectionCentreFlag
source§fn eq(&self, other: &ProjectionCentreFlag) -> bool
fn eq(&self, other: &ProjectionCentreFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProjectionCentreFlag
impl Eq for ProjectionCentreFlag
impl StructuralPartialEq for ProjectionCentreFlag
Auto Trait Implementations§
impl Freeze for ProjectionCentreFlag
impl RefUnwindSafe for ProjectionCentreFlag
impl Send for ProjectionCentreFlag
impl Sync for ProjectionCentreFlag
impl Unpin for ProjectionCentreFlag
impl UnwindSafe for ProjectionCentreFlag
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
)