[][src]Trait semval::Validate

pub trait Validate<T> where
    T: Validation
{ fn validate(&self) -> Result<T>; }

A trait for validating types

Validation is expected to be an expensive operation that should only be invoked when crossing boundaries between independent components.

Required methods

fn validate(&self) -> Result<T>

Perform the validation

Loading content...

Implementors

Loading content...