pub trait Constraint:
Debug
+ Send
+ Sync {
// Required methods
fn description(&self) -> &'static str;
fn satisfied(&self, ty: &Type) -> bool;
}
Expand description
A trait implemented by type constraints.
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Gets a description of the constraint.