#[non_exhaustive]pub struct WExpr {
pub konst: i64,
pub terms: Vec<(u8, i64)>,
}Expand description
A linear expression over a rule’s width variables: konst + Σ coeff·var.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.konst: i64The constant term.
terms: Vec<(u8, i64)>(variable index, coefficient), sorted by variable, no zero coefficients.
Implementations§
Trait Implementations§
impl Eq for WExpr
impl StructuralPartialEq for WExpr
Auto Trait Implementations§
impl Freeze for WExpr
impl RefUnwindSafe for WExpr
impl Send for WExpr
impl Sync for WExpr
impl Unpin for WExpr
impl UnsafeUnpin for WExpr
impl UnwindSafe for WExpr
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