pub struct Member<T: Float, M> {
pub weight: Witnessed<T, NormalizedWeight>,
pub metric: M,
}Expand description
A member of a MetricSet: a normalized weight paired
with its metric.
Fields§
§weight: Witnessed<T, NormalizedWeight>The normalized weight.
metric: MThe metric or operator.
Implementations§
Trait Implementations§
impl<T: Copy + Float, M: Copy> Copy for Member<T, M>
Auto Trait Implementations§
impl<T, M> Freeze for Member<T, M>
impl<T, M> RefUnwindSafe for Member<T, M>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, M> Send for Member<T, M>
impl<T, M> Sync for Member<T, M>
impl<T, M> Unpin for Member<T, M>
impl<T, M> UnsafeUnpin for Member<T, M>where
M: UnsafeUnpin,
T: UnsafeUnpin,
impl<T, M> UnwindSafe for Member<T, M>where
M: UnwindSafe,
T: UnwindSafe,
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