pub struct Constraint(/* private fields */);
Expand description
Constraint.
Implementations§
Source§impl Constraint
impl Constraint
Sourcepub fn kind(&self) -> &ConstraintKind
pub fn kind(&self) -> &ConstraintKind
Gets constraint kind.
Sourcepub fn new(
lhs: Node,
kind: ConstraintKind,
rhs: Node,
label: &str,
) -> Constraint
pub fn new( lhs: Node, kind: ConstraintKind, rhs: Node, label: &str, ) -> Constraint
Creates new constraint.
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§impl ConstraintStd for Constraint
impl ConstraintStd for Constraint
Source§fn std_components(
&self,
arow: &mut usize,
jrow: &mut usize,
) -> ConstraintStdComp
fn std_components( &self, arow: &mut usize, jrow: &mut usize, ) -> ConstraintStdComp
Gets standard components of constraint.
Source§impl Debug for Constraint
impl Debug for Constraint
Source§impl<'a> Display for Constraint
impl<'a> Display for Constraint
Source§impl Hash for Constraint
impl Hash for Constraint
Source§impl PartialEq for Constraint
impl PartialEq for Constraint
impl Eq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl !Send for Constraint
impl !Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
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