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