dator/
lib.rs

1//! Validate different data types.
2//!
3//! This library is realy simple: give a `&str` as an argument and return a `bool`.
4//!
5//! # Example
6//! ```
7//! if dator::domain("example.com") {
8//!     // valid domain
9//! }
10//! ```
11
12mod domain;
13mod ip;
14mod mail;
15pub use self::domain::domain;
16pub use self::ip::{ip, ipv4, ipv6};
17pub use self::mail::email;