pub struct WindGust(/* private fields */);Expand description
Wind gust stored in meters per second.
Implementations§
Source§impl WindGust
impl WindGust
Sourcepub fn new(meters_per_second: f64) -> Result<Self, WindValueError>
pub fn new(meters_per_second: f64) -> Result<Self, WindValueError>
Creates wind gust from a finite non-negative value.
§Errors
Returns WindValueError when the gust is invalid.
Sourcepub fn meters_per_second(&self) -> f64
pub fn meters_per_second(&self) -> f64
Returns the stored gust speed in meters per second.
Trait Implementations§
Source§impl PartialOrd for WindGust
impl PartialOrd for WindGust
impl Copy for WindGust
impl StructuralPartialEq for WindGust
Auto Trait Implementations§
impl Freeze for WindGust
impl RefUnwindSafe for WindGust
impl Send for WindGust
impl Sync for WindGust
impl Unpin for WindGust
impl UnsafeUnpin for WindGust
impl UnwindSafe for WindGust
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