Struct CloudLayer
pub struct CloudLayer { /* private fields */ }Expand description
A descriptive cloud layer built from kind, cover, and optional base.
Implementations§
§impl CloudLayer
impl CloudLayer
pub fn new(kind: CloudKind, cover: CloudCover) -> CloudLayer
pub fn new(kind: CloudKind, cover: CloudCover) -> CloudLayer
Creates a cloud layer from cloud kind and cover.
pub fn with_base(self, base: CloudBase) -> CloudLayer
pub fn with_base(self, base: CloudBase) -> CloudLayer
Adds a cloud base to the layer.
pub fn cover(&self) -> CloudCover
pub fn cover(&self) -> CloudCover
Returns the cloud cover.
Trait Implementations§
§impl Clone for CloudLayer
impl Clone for CloudLayer
§fn clone(&self) -> CloudLayer
fn clone(&self) -> CloudLayer
Returns a duplicate 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 more§impl Debug for CloudLayer
impl Debug for CloudLayer
§impl PartialEq for CloudLayer
impl PartialEq for CloudLayer
impl StructuralPartialEq for CloudLayer
Auto Trait Implementations§
impl Freeze for CloudLayer
impl RefUnwindSafe for CloudLayer
impl Send for CloudLayer
impl Sync for CloudLayer
impl Unpin for CloudLayer
impl UnsafeUnpin for CloudLayer
impl UnwindSafe for CloudLayer
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