#[repr(transparent)]
pub struct BidiClass(pub u8);
Expand description

Enumerated property Bidi_Class

These are the categories required by the Unicode Bidirectional Algorithm. For the property values, see Bidirectional Class Values. For more information, see Unicode Standard Annex #9.

Tuple Fields

0: u8

Implementations

(L) any strong left-to-right character

(R) any strong right-to-left (non-Arabic-type) character

(EN) any ASCII digit or Eastern Arabic-Indic digit

(ES) plus and minus signs

(ET) a terminator in a numeric format context, includes currency signs

(AN) any Arabic-Indic digit

(CS) commas, colons, and slashes

(B) various newline characters

(S) various segment-related control codes

(WS) spaces

(ON) most other symbols and punctuation marks

(LRE) U+202A: the LR embedding control

(LRO) U+202D: the LR override control

(AL) any strong right-to-left (Arabic-type) character

(RLE) U+202B: the RL embedding control

(RLO) U+202E: the RL override control

(PDF) U+202C: terminates an embedding or override control

(NSM) any nonspacing mark

(BN) most format characters, control codes, or noncharacters

(FSI) U+2068: the first strong isolate control

(LRI) U+2066: the LR isolate control

(RLI) U+2067: the RL isolate control

(PDI) U+2069: terminates an isolate control

Trait Implementations

The ULE type corresponding to Self. Read more

Converts from Self to Self::ULE. Read more

Converts from Self::ULE to Self. Read more

Returns a TokenStream that would evaluate to self. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. 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 returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Serialize this value into the given Serde serializer. Read more

Last-resort fallback value to return if we cannot read data from the trie. Read more

A parsing function that is primarily motivated by deserialization contexts. When the serialization type width is smaller than 32 bits, then it is expected that the call site will widen the value to a u32 first. Read more

The container that can be used with this type: ZeroVec or VarZeroVec.

The type produced by Container::get() Read more

The type produced by Container::replace() and Container::remove(), also used during deserialization. If Self is human readable serialized, deserializing to Self::OwnedType should produce the same value once passed through Self::owned_as_self() 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

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.