pub struct LinearNormalForm<F: Field> {
pub constant: F,
pub var_coeffs: Vec<F>,
}
Expand description
A normal form for a linear expression.
Fields§
§constant: F
The constant offset of the expression.
var_coeffs: Vec<F>
A vector mapping variable indices to their coefficients.
Trait Implementations§
Source§impl<F: Clone + Field> Clone for LinearNormalForm<F>
impl<F: Clone + Field> Clone for LinearNormalForm<F>
Source§fn clone(&self) -> LinearNormalForm<F>
fn clone(&self) -> LinearNormalForm<F>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F: Default + Field> Default for LinearNormalForm<F>
impl<F: Default + Field> Default for LinearNormalForm<F>
Source§fn default() -> LinearNormalForm<F>
fn default() -> LinearNormalForm<F>
Returns the “default value” for a type. Read more
impl<F: Eq + Field> Eq for LinearNormalForm<F>
impl<F: Field> StructuralPartialEq for LinearNormalForm<F>
Auto Trait Implementations§
impl<F> Freeze for LinearNormalForm<F>
impl<F> RefUnwindSafe for LinearNormalForm<F>
impl<F> Send for LinearNormalForm<F>
impl<F> Sync for LinearNormalForm<F>
impl<F> Unpin for LinearNormalForm<F>
impl<F> UnwindSafe for LinearNormalForm<F>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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