pub trait Validate: Sealed {
// Required method
fn validate<R: Rule + ?Sized>(&self) -> Result<()>
where Self: Validation<R>;
}
Expand description
Validation
trait’s shim allowing to specify its Rule
as a
method’s type parameter.
pub trait Validate: Sealed {
// Required method
fn validate<R: Rule + ?Sized>(&self) -> Result<()>
where Self: Validation<R>;
}
Validation
trait’s shim allowing to specify its Rule
as a
method’s type parameter.