Struct aliri_braid_examples::normalized::LowerStr[][src]

#[repr(transparent)]
pub struct LowerStr(_);
Expand description

A borrowed reference to a non-empty, lowercase string

Implementations

Transparently reinterprets the string slice as a strongly-typed LowerStr if it conforms to LowerString, normalizing if necessary

Transparently reinterprets the string slice as a strongly-typed LowerStr if it conforms to LowerString, producing an error if normalization is necessary

Transparently reinterprets the string slice as a strongly-typed LowerStr without validating

Safety

Calls to this function must ensure that the value being passed conforms to LowerString and is already in normalized form. Failure to do this may result in undefined behavior if other code relies on this invariant.

Converts a Box<LowerStr> into a LowerString without copying or allocating

Provides access to the underlying value as a string slice.

Trait Implementations

Performs the conversion.

Performs the conversion.

Immutably borrows from an owned value. Read more

Formats the value using the given formatter. Read more

Deserializes a LowerStr in normalized form

This deserializer requires that the value already be in normalized form. If values may require normalization, then deserialized as LowerString or Cow<LowerStr> instead.

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

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

Converts the given value to a String. Read more