1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
mod buf;
mod slice;
pub use buf::StrongBuf;
pub use slice::Strong;

pub mod marker;

mod impl_convert;

#[cfg(feature = "some_validators")]
mod validators;
#[cfg(feature = "some_validators")]
pub use validators::*;

pub trait Validator {
    type Err: std::fmt::Debug;
    #[allow(unused_variables)]
    fn validate(raw: &str) -> Result<(), Self::Err> { Ok(()) }
}