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

Rust wrapper for the ICU UTransliterator type.

Implementations

Returns an enumeration containing the identifiers of all available transliterators.

Implements utrans_openIDs.

Consumes trans and registers it with the underlying ICU system. A transliterator that has been registered with the system can be retrieved by calling new with its identifier.

Implements utrans_register.

If rules are given, creates a new transliterator with rules and identifier. Otherwise, returns the ICU system transliterator with the given identifier.

Implements utrans_openU.

Implements utrans_openU.

Returns the identifier for this transliterator.

Implements utrans_getUnicodeID.

Returns the inverse of this transliterator, provided that the inverse has been registered with the underlying ICU system, i.e., a built-in ICU transliterator or one registered with register.

Implements utrans_openInverse.

Returns a rules string for this transliterator in the same format expected by new.

Implements utrans_toRules.

Apply a filter to this transliterator, causing certain characters to pass through untouched. The filter is formatted as a UnicodeSet string. If the filter is None, then any previously-applied filter is cleared.

Implements utrans_setFilter.

Implements utrans_setFilter.

Returns a string containing the transliterated text.

Implements utrans_transUChars.

Implements utrans_transUChars.

Unregister a transliterator from the underlying ICU system.

Implements utrans_unregisterID.

Trait Implementations

Implements utrans_clone.

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Implements $impl_function_name.

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.