pub struct PartialConstraint { /* private fields */ }Expand description
This is an intermediate type used in the syntactic sugar for specifying constraints. You should not use it directly.
Implementations§
Source§impl PartialConstraint
impl PartialConstraint
Sourcepub const fn new(
expression: Expression,
relation: WeightedRelation,
) -> PartialConstraint
pub const fn new( expression: Expression, relation: WeightedRelation, ) -> PartialConstraint
Construct a new partial constraint from an expression and a relational operator.
Trait Implementations§
Source§impl BitOr<Expression> for PartialConstraint
impl BitOr<Expression> for PartialConstraint
Source§type Output = Constraint
type Output = Constraint
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: Expression) -> Constraint
fn bitor(self, rhs: Expression) -> Constraint
Performs the
| operation. Read moreSource§impl BitOr<Term> for PartialConstraint
impl BitOr<Term> for PartialConstraint
Source§type Output = Constraint
type Output = Constraint
The resulting type after applying the
| operator.Source§impl BitOr<Variable> for PartialConstraint
impl BitOr<Variable> for PartialConstraint
Source§type Output = Constraint
type Output = Constraint
The resulting type after applying the
| operator.Source§impl BitOr<f32> for PartialConstraint
impl BitOr<f32> for PartialConstraint
Source§type Output = Constraint
type Output = Constraint
The resulting type after applying the
| operator.Source§impl BitOr<f64> for PartialConstraint
impl BitOr<f64> for PartialConstraint
Source§type Output = Constraint
type Output = Constraint
The resulting type after applying the
| operator.Auto Trait Implementations§
impl Freeze for PartialConstraint
impl RefUnwindSafe for PartialConstraint
impl Send for PartialConstraint
impl Sync for PartialConstraint
impl Unpin for PartialConstraint
impl UnwindSafe for PartialConstraint
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