pub struct BorderConstraint;Expand description
Constraint that validates all borders are walls.
Trait Implementations§
Source§impl Constraint for BorderConstraint
impl Constraint for BorderConstraint
Source§fn kind(&self) -> ConstraintKind
fn kind(&self) -> ConstraintKind
The kind of constraint.
Source§fn evaluate(&self, ctx: &ConstraintContext<'_>) -> ConstraintResult
fn evaluate(&self, ctx: &ConstraintContext<'_>) -> ConstraintResult
Evaluates the constraint against the given context.
Auto Trait Implementations§
impl Freeze for BorderConstraint
impl RefUnwindSafe for BorderConstraint
impl Send for BorderConstraint
impl Sync for BorderConstraint
impl Unpin for BorderConstraint
impl UnwindSafe for BorderConstraint
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