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