Expand description
Define macros that simplify the creation of StringType structs, by handling most of the
boilerplate.
#[string_type] supplies the following implementations:
StringTypeFrom<Type>forStringFrom<Type>for Inner if not aString.
The FromStr derive macro supplies a reasonable implementation depending on the EnsureValid
trait.
Attribute Macros§
- string_
type - Generate the base implementations for a
StringTypeincluding theStringTypetrait and the appropriateFrom<T>implementations.