STRONG
Rust is a statically and strongly typed systems programming language. We can create a new type wrapping primitives.
;
;
There is a problem here, there are two types of strings in Rust, and it is hard to create strong types for both String
and &str
.
STRONG provides two types owned StrongBuf
and unsized Strong
.
use ;
let email: = ..
let password: = ..
login;
Email
requires some_validators
feature.
Getting Started
use ;
let email: = validate.unwrap;
let password: & = validate.unwrap;
Shorthand
With shorthand
feature, Str
and S
are exported and can be substituted for StrongBuf
and Strong
.
let email: = validate.unwrap;
let email: = validate.unwrap;
License
Licensed under MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
Contributing
welcome!