pub struct Constraint { /* private fields */ }
Implementations§
Source§impl Constraint
impl Constraint
pub fn new<S: Into<String>>( name: S, expr: Expr, position: Option<Position>, ) -> Self
pub fn expr(&self) -> &Expr
pub fn resolve_type_expr(&mut self, entries: &TypeEntries) -> Result<(), Error>
pub fn resolve_expr( &self, problem: &Problem, entries: &Entries, ) -> Result<Constraint, Error>
pub fn check_parameter_size(&self, problem: &Problem) -> Result<(), Error>
pub fn check_type(&self, problem: &Problem) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl GetFromId<ConstraintId, Constraint> for Problem
impl GetFromId<ConstraintId, Constraint> for Problem
fn get(&self, id: ConstraintId) -> Option<&Constraint>
Source§impl Named<ConstraintId> for Constraint
impl Named<ConstraintId> for Constraint
Source§impl WithPosition for Constraint
impl WithPosition 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