pub struct Penalties<U: UInt> { /* private fields */ }
Expand description
Penalties to use in the Needleman-Wunsch distance calculation.
Since we provide a distance implementation that is intended to be used as a metric that obeys the triangle inequality, the penalties should all be non-negative, thus the genericity over unsigned integers.
Implementations§
Trait Implementations§
impl<U: Copy + UInt> Copy for Penalties<U>
Auto Trait Implementations§
impl<U> Freeze for Penalties<U>where
U: Freeze,
impl<U> RefUnwindSafe for Penalties<U>where
U: RefUnwindSafe,
impl<U> Send for Penalties<U>
impl<U> Sync for Penalties<U>
impl<U> Unpin for Penalties<U>where
U: Unpin,
impl<U> UnwindSafe for Penalties<U>where
U: 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