Struct NicheBreadth
pub struct NicheBreadth(/* private fields */);Implementations§
§impl NicheBreadth
impl NicheBreadth
pub fn new(value: f64) -> Result<NicheBreadth, NicheValueError>
pub fn new(value: f64) -> Result<NicheBreadth, NicheValueError>
§Errors
Returns NicheValueError::NonFinite when value is not finite.
Returns NicheValueError::Negative when value is less than zero.
pub const fn get(self) -> f64
Trait Implementations§
§impl Clone for NicheBreadth
impl Clone for NicheBreadth
§fn clone(&self) -> NicheBreadth
fn clone(&self) -> NicheBreadth
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 NicheBreadth
impl Debug for NicheBreadth
§impl Display for NicheBreadth
impl Display for NicheBreadth
§impl PartialEq for NicheBreadth
impl PartialEq for NicheBreadth
§impl PartialOrd for NicheBreadth
impl PartialOrd for NicheBreadth
impl Copy for NicheBreadth
impl StructuralPartialEq for NicheBreadth
Auto Trait Implementations§
impl Freeze for NicheBreadth
impl RefUnwindSafe for NicheBreadth
impl Send for NicheBreadth
impl Sync for NicheBreadth
impl Unpin for NicheBreadth
impl UnsafeUnpin for NicheBreadth
impl UnwindSafe for NicheBreadth
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