pub struct ULocMut { /* private fields */ }
Expand description

ULocMut is a mutable companion to ULoc.

It has methods that allow one to create a different ULoc by adding and removing keywords to the locale identifier. You can only creates a ULocMut by converting from an existing ULoc by calling ULocMut::from. And once you are done changing it, you can only convert it back with ULoc::from.

ULocMut is not meant to have comprehensive coverage of mutation options. They may be added as necessary.

Implementations

Sets the specified unicode extension keyvalue. Only valid keys can be set, inserting an invalid extension key does not change ULocMut.

Removes the specified unicode extension keyvalue. Only valid keys can be removed, attempting to remove an invalid extension key does not change ULocMut.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Turns ULoc into ULocMut, which can be mutated.

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

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.

The type returned in the event of a conversion error.

Performs the conversion.