Trait synthez::parse::attrs::validate::Validate[][src]

pub trait Validate: Sealed {
    fn validate<R>(&self) -> Result<(), Error>
    where
        Self: Validation<R>,
        R: Rule + ?Sized
; }
Expand description

Validation trait’s shim allowing to specify its Rule as a method’s type parameter.

Required methods

Checks whether the specified validation Rule is satisfied.

Errors

If validation fails.

Implementors