pub struct SignedExpr {
pub id: ExprId,
pub neg: bool,
}Expand description
A nonlinear residual summand: the existing arena node id, taken with a
leading negation when neg is set. Carrying the sign as a flag.
Lets split_linear run without a mutable arena.
Fields§
§id: ExprId§neg: boolTrait Implementations§
Source§impl Clone for SignedExpr
impl Clone for SignedExpr
Source§fn clone(&self) -> SignedExpr
fn clone(&self) -> SignedExpr
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 moreimpl Copy for SignedExpr
Source§impl Debug for SignedExpr
impl Debug for SignedExpr
impl Eq for SignedExpr
Source§impl PartialEq for SignedExpr
impl PartialEq for SignedExpr
Source§fn eq(&self, other: &SignedExpr) -> bool
fn eq(&self, other: &SignedExpr) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SignedExpr
Auto Trait Implementations§
impl Freeze for SignedExpr
impl RefUnwindSafe for SignedExpr
impl Send for SignedExpr
impl Sync for SignedExpr
impl Unpin for SignedExpr
impl UnsafeUnpin for SignedExpr
impl UnwindSafe for SignedExpr
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