pub struct Linearized {
pub facts: Vec<Constraint>,
pub goal: Constraint,
pub nonneg: Vec<Var>,
pub pure_linear: bool,
pub names: Vec<String>,
}Expand description
A linearized representation of a system of constraints.
Non-linear atoms get fresh Vars and names like X*Y or Z^2.
Fields§
§facts: Vec<Constraint>§goal: Constraint§nonneg: Vec<Var>§pure_linear: bool§names: Vec<String>Implementations§
Source§impl Linearized
impl Linearized
pub fn new( facts: &[Constraint], goal: &Constraint, vars: &[String], nonneg: &dyn Fn(Var) -> bool, ) -> Self
Auto Trait Implementations§
impl Freeze for Linearized
impl RefUnwindSafe for Linearized
impl Send for Linearized
impl Sync for Linearized
impl Unpin for Linearized
impl UnsafeUnpin for Linearized
impl UnwindSafe for Linearized
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