Expand description

An example of constructing a strongly-typed wrapper around a normalized string value.

The types in this module perform validation and normalization prior to allowing the type to be instantiated. If the value is already normalized, then the value is used without modification. Otherwise, an attempt is made to normalize the value. If the value cannot be normalized, then an error will be returned rather than allowing the invalid value to be constructed.

Refer to the Normalizer implementation for a given type for additional information on what is considered a valid or normalizable value for the type.

Structs

Enums

  • An error indicating that the provided value was invalid