1
2
3
4
/// A trait for validating a type.
pub trait Validatable<E> {
    fn validate(&self) -> Result<(), E>;
}