specler 0.21.0

A simple way to write specifications on values
Documentation
1
2
3
4
5
6
use crate::core::validator::validator_result::ValidatorResult;

pub(crate) mod validator_result;
pub mod validator_fn;

pub type Validator<T> = Box<dyn Fn(T) -> ValidatorResult>;