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

pub trait Validate: Sealed {
    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.

Required methods

Checks whether the specified validation Rule is satisfied.

Errors

If validation fails.

Implementors