Struct validate::Rule
[−]
[src]
pub struct Rule<T: ?Sized> { /* fields omitted */ }
Methods
impl<T: 'static> Rule<T>
[src]
impl<T: ?Sized + 'static> Rule<T>
[src]
fn validate(&self, input: &T) -> ValidationResult
[src]
fn nest<'b, R, F, U: ?Sized>(get: F, rule: R) -> Self where
R: Into<Rule<U>>,
F: Fn(&T) -> &U + 'static,
U: 'static,
[src]
R: Into<Rule<U>>,
F: Fn(&T) -> &U + 'static,
U: 'static,
fn name(self, name: &str) -> Self
[src]
Trait Implementations
impl<T: ?Sized, F> From<F> for Rule<T> where
F: Fn(&T) -> ValidationResult + 'static,
T: ,
[src]
F: Fn(&T) -> ValidationResult + 'static,
T: ,