fast_new_type
This crate serves the purporse of implement Deref
,DerefMut
,AsRef
,AsMut
and From
in new
types,either for the first value of a struct,the "value" or "slot" field or the specified in the attribute.
With default-features = false
you can opt-out of the From
impl which in some cases is not desirable.
This crate is no_std.
Usage
use new_type;
;
License
This code is licensed under the Unlicense.