pub struct DualProjection<K> {
pub source: K,
pub scale: f64,
}Expand description
One native row’s contribution to an original multiplier. Store None in
the native row map when no reversible multiplier transformation is known.
Fields§
§source: K§scale: f64Implementations§
Source§impl<K: Copy + Eq + Hash> DualProjection<K>
impl<K: Copy + Eq + Hash> DualProjection<K>
pub fn accumulate<S: BuildHasher>( self, map: &mut HashMap<K, f64, S>, value: f64, objective_sign: f64, )
Trait Implementations§
Source§impl<K: Clone> Clone for DualProjection<K>
impl<K: Clone> Clone for DualProjection<K>
impl<K: Copy> Copy for DualProjection<K>
Source§impl<K: Debug> Debug for DualProjection<K>
impl<K: Debug> Debug for DualProjection<K>
Source§impl<K: PartialEq> PartialEq for DualProjection<K>
impl<K: PartialEq> PartialEq for DualProjection<K>
impl<K: PartialEq> StructuralPartialEq for DualProjection<K>
Auto Trait Implementations§
impl<K> Freeze for DualProjection<K>where
K: Freeze,
impl<K> RefUnwindSafe for DualProjection<K>where
K: RefUnwindSafe,
impl<K> Send for DualProjection<K>where
K: Send,
impl<K> Sync for DualProjection<K>where
K: Sync,
impl<K> Unpin for DualProjection<K>where
K: Unpin,
impl<K> UnsafeUnpin for DualProjection<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for DualProjection<K>where
K: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more