pub struct CloudCover(/* private fields */);Expand description
Cloud cover stored in oktas.
Implementations§
Source§impl CloudCover
impl CloudCover
Sourcepub fn new(oktas: u8) -> Result<Self, CloudValueError>
pub fn new(oktas: u8) -> Result<Self, CloudValueError>
Creates cloud cover from oktas in 0..=8.
§Errors
Returns CloudValueError::CloudCoverOutOfRange when the value exceeds 8.
Trait Implementations§
Source§impl Clone for CloudCover
impl Clone for CloudCover
Source§fn clone(&self) -> CloudCover
fn clone(&self) -> CloudCover
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 moreSource§impl Debug for CloudCover
impl Debug for CloudCover
Source§impl Ord for CloudCover
impl Ord for CloudCover
Source§fn cmp(&self, other: &CloudCover) -> Ordering
fn cmp(&self, other: &CloudCover) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CloudCover
impl PartialEq for CloudCover
Source§fn eq(&self, other: &CloudCover) -> bool
fn eq(&self, other: &CloudCover) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CloudCover
impl PartialOrd for CloudCover
impl Copy for CloudCover
impl Eq for CloudCover
impl StructuralPartialEq for CloudCover
Auto Trait Implementations§
impl Freeze for CloudCover
impl RefUnwindSafe for CloudCover
impl Send for CloudCover
impl Sync for CloudCover
impl Unpin for CloudCover
impl UnsafeUnpin for CloudCover
impl UnwindSafe for CloudCover
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