pub enum BidiClass {
Show 23 variants ArabicLetter, ArabicNumber, ParagraphSeparator, BoundaryNeutral, CommonSeparator, EuropeanNumber, EuropeanSeparator, EuropeanTerminator, FirstStrongIsolate, LeftToRight, LeftToRightEmbedding, LeftToRightIsolate, LeftToRightOverride, NonspacingMark, OtherNeutral, PopDirectionalFormat, PopDirectionalIsolate, RightToLeft, RightToLeftEmbedding, RightToLeftIsolate, RightToLeftOverride, SegmentSeparator, WhiteSpace,
}
Expand description

Represents the Unicode character Bidi_Class property, also known as the bidirectional character type.

Variants§

§

ArabicLetter

A strong Right-to-Left (Arabic-type) character

§

ArabicNumber

A (non-Eastern) Arabic-Indic digit

§

ParagraphSeparator

A newline character

§

BoundaryNeutral

Most format characters, control codes, and noncharacters

§

CommonSeparator

A comma, colon, or slash

§

EuropeanNumber

A ASCII digit or Eastern Arabic-Indic digit

§

EuropeanSeparator

A plus or minus sign

§

EuropeanTerminator

A terminator in a numeric format context (including currency signs)

§

FirstStrongIsolate

U+2068: The first strong isolate control

§

LeftToRight

A strong Left-to-Right character

§

LeftToRightEmbedding

U+202A: the Left-to-Right embedding control

§

LeftToRightIsolate

U+2066: the Left-to-Right isolate control

§

LeftToRightOverride

U+202D: the Left-to-Right override control

§

NonspacingMark

A nonspacing mark

§

OtherNeutral

Symbols and Punctuation not in a different category

§

PopDirectionalFormat

U+202C: terminates an embedding or override control

§

PopDirectionalIsolate

U+2069: terminates an isolate control

§

RightToLeft

A strong Right-to-Left (non-Arabic-type) character

§

RightToLeftEmbedding

U+202B: The Right-to-Left embedding control

§

RightToLeftIsolate

U+2067: The Right-to-Left isolate control

§

RightToLeftOverride

U+202E: The Right-to-Left override control

§

SegmentSeparator

A segment-related control code

§

WhiteSpace

Whitespace

Implementations§

Find the character Bidi_Class property value.

If the BidiClass has strong or explicit Left-to-Right direction.

If the BidiClass has strong or explicit Left-to-Right direction.

If the BidiClass has strong or explicit Right-To-Left direction.

Trait Implementations§

The abbreviated name of the property.
The long name of the property.
The human-readable name of the property.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

UCD/extracted/DerivedBidiClass.txt: “All code points not explicitly listed for Bidi_Class have the value Left_To_Right (L).”

Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Exhaustive list of all property values.
The abbreviated name of the property value.
The long name of the property value.
The human-readable name of the property value.
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
The property value for the character.

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 property value for the character, or None.
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.