pub struct LinearEquation<T, U> {
pub linear_combination: Vec<(U, T)>,
pub image: U,
}Fields§
§linear_combination: Vec<(U, T)>Coefficient-variable pairs representing the left-hand side of
sum_i coefficient_i * variable_i = image.
image: UThe right-hand side of the linear relation.
Implementations§
Source§impl<T, U> LinearEquation<T, U>
impl<T, U> LinearEquation<T, U>
pub fn new( linear_combination: impl IntoIterator<Item = (U, T)>, image: U, ) -> Self
Trait Implementations§
Source§impl<T: Clone, U: Clone> Clone for LinearEquation<T, U>
impl<T: Clone, U: Clone> Clone for LinearEquation<T, U>
Source§fn clone(&self) -> LinearEquation<T, U>
fn clone(&self) -> LinearEquation<T, U>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, U: Unit> Default for LinearEquation<T, U>
impl<T, U: Unit> Default for LinearEquation<T, U>
impl<T: Eq, U: Eq> Eq for LinearEquation<T, U>
impl<T: PartialEq, U: PartialEq> StructuralPartialEq for LinearEquation<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for LinearEquation<T, U>
impl<T, U> RefUnwindSafe for LinearEquation<T, U>
impl<T, U> Send for LinearEquation<T, U>
impl<T, U> Sync for LinearEquation<T, U>
impl<T, U> Unpin for LinearEquation<T, U>
impl<T, U> UnsafeUnpin for LinearEquation<T, U>
impl<T, U> UnwindSafe for LinearEquation<T, U>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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