Struct DiversityIndex
pub struct DiversityIndex { /* private fields */ }Implementations§
§impl DiversityIndex
impl DiversityIndex
pub fn new(
kind: DiversityIndexKind,
value: f64,
) -> Result<DiversityIndex, BiodiversityValueError>
pub fn new( kind: DiversityIndexKind, value: f64, ) -> Result<DiversityIndex, BiodiversityValueError>
§Errors
Returns BiodiversityValueError::NonFinite when value is not finite.
pub const fn kind(&self) -> &DiversityIndexKind
pub const fn value(&self) -> f64
Trait Implementations§
§impl Clone for DiversityIndex
impl Clone for DiversityIndex
§fn clone(&self) -> DiversityIndex
fn clone(&self) -> DiversityIndex
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 DiversityIndex
impl Debug for DiversityIndex
§impl Display for DiversityIndex
impl Display for DiversityIndex
§impl PartialEq for DiversityIndex
impl PartialEq for DiversityIndex
§impl PartialOrd for DiversityIndex
impl PartialOrd for DiversityIndex
impl StructuralPartialEq for DiversityIndex
Auto Trait Implementations§
impl Freeze for DiversityIndex
impl RefUnwindSafe for DiversityIndex
impl Send for DiversityIndex
impl Sync for DiversityIndex
impl Unpin for DiversityIndex
impl UnsafeUnpin for DiversityIndex
impl UnwindSafe for DiversityIndex
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