Struct wow_srp::normalized_string::NormalizedString[][src]

pub struct NormalizedString { /* fields omitted */ }
Expand description

Represents usernames and passwords containing only allowed characters.

Ownership is always taken by the function requiring it in order to prevent any cloning and reallocation.

See normalized_string for more information.

Implementations

Checks for non-ASCII characters and too large of a string and correctly uppercases letters as needed.

Allowed characters are all ASCII characters except for ASCII control characters.

Errors

See the module level docs for explanation of allowed values.

Trait Implementations

Performs the conversion.

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.