pub struct Centroid { /* private fields */ }Implementations§
Source§impl Centroid
impl Centroid
pub fn new(mean: OrderedF64, weight: OrderedF64) -> Self
pub fn mean(&self) -> OrderedF64
pub fn weight(&self) -> OrderedF64
Trait Implementations§
impl Copy for Centroid
Source§impl<'de> Deserialize<'de> for Centroid
impl<'de> Deserialize<'de> for Centroid
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Centroid
Source§impl Ord for Centroid
impl Ord for Centroid
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Centroid
impl PartialOrd for Centroid
impl StructuralPartialEq for Centroid
Auto Trait Implementations§
impl Freeze for Centroid
impl RefUnwindSafe for Centroid
impl Send for Centroid
impl Sync for Centroid
impl Unpin for Centroid
impl UnsafeUnpin for Centroid
impl UnwindSafe for Centroid
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