1
2
3
4
5
6
7
8
//! Validation trait.

/// Types implementing this trait can be queried for validity.
pub trait Valid {
    /// Check if the current state is valid.
    #[must_use]
    fn check(&self) -> bool;
}