pub struct Constraint<T, F>where
T: ?Sized,{ /* private fields */ }Implementations§
Source§impl<T, F> Constraint<T, F>
impl<T, F> Constraint<T, F>
pub const fn new(label: &'static str, evaluator: F) -> Constraint<T, F>
pub const fn label(&self) -> &'static str
pub fn evaluate(&self, value: &T) -> ConstraintEvaluation<'static>
pub fn is_satisfied_by(&self, value: &T) -> bool
Auto Trait Implementations§
impl<T, F> Freeze for Constraint<T, F>
impl<T, F> RefUnwindSafe for Constraint<T, F>where
F: RefUnwindSafe,
T: ?Sized,
impl<T, F> Send for Constraint<T, F>
impl<T, F> Sync for Constraint<T, F>
impl<T, F> Unpin for Constraint<T, F>
impl<T, F> UnsafeUnpin for Constraint<T, F>where
F: UnsafeUnpin,
T: ?Sized,
impl<T, F> UnwindSafe for Constraint<T, F>where
F: UnwindSafe,
T: ?Sized,
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