Struct icu_properties::props::BidiClass
source · #[repr(transparent)]pub struct BidiClass(/* private fields */);
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.
Implementations§
source§impl BidiClass
impl BidiClass
sourcepub const LeftToRight: BidiClass = _
pub const LeftToRight: BidiClass = _
(L
) any strong left-to-right character
sourcepub const RightToLeft: BidiClass = _
pub const RightToLeft: BidiClass = _
(R
) any strong right-to-left (non-Arabic-type) character
sourcepub const EuropeanNumber: BidiClass = _
pub const EuropeanNumber: BidiClass = _
(EN
) any ASCII digit or Eastern Arabic-Indic digit
sourcepub const EuropeanSeparator: BidiClass = _
pub const EuropeanSeparator: BidiClass = _
(ES
) plus and minus signs
sourcepub const EuropeanTerminator: BidiClass = _
pub const EuropeanTerminator: BidiClass = _
(ET
) a terminator in a numeric format context, includes currency signs
sourcepub const ArabicNumber: BidiClass = _
pub const ArabicNumber: BidiClass = _
(AN
) any Arabic-Indic digit
sourcepub const CommonSeparator: BidiClass = _
pub const CommonSeparator: BidiClass = _
(CS
) commas, colons, and slashes
sourcepub const ParagraphSeparator: BidiClass = _
pub const ParagraphSeparator: BidiClass = _
(B
) various newline characters
sourcepub const SegmentSeparator: BidiClass = _
pub const SegmentSeparator: BidiClass = _
(S
) various segment-related control codes
sourcepub const WhiteSpace: BidiClass = _
pub const WhiteSpace: BidiClass = _
(WS
) spaces
sourcepub const OtherNeutral: BidiClass = _
pub const OtherNeutral: BidiClass = _
(ON
) most other symbols and punctuation marks
sourcepub const LeftToRightEmbedding: BidiClass = _
pub const LeftToRightEmbedding: BidiClass = _
(LRE
) U+202A: the LR embedding control
sourcepub const LeftToRightOverride: BidiClass = _
pub const LeftToRightOverride: BidiClass = _
(LRO
) U+202D: the LR override control
sourcepub const ArabicLetter: BidiClass = _
pub const ArabicLetter: BidiClass = _
(AL
) any strong right-to-left (Arabic-type) character
sourcepub const RightToLeftEmbedding: BidiClass = _
pub const RightToLeftEmbedding: BidiClass = _
(RLE
) U+202B: the RL embedding control
sourcepub const RightToLeftOverride: BidiClass = _
pub const RightToLeftOverride: BidiClass = _
(RLO
) U+202E: the RL override control
sourcepub const PopDirectionalFormat: BidiClass = _
pub const PopDirectionalFormat: BidiClass = _
(PDF
) U+202C: terminates an embedding or override control
sourcepub const NonspacingMark: BidiClass = _
pub const NonspacingMark: BidiClass = _
(NSM
) any nonspacing mark
sourcepub const BoundaryNeutral: BidiClass = _
pub const BoundaryNeutral: BidiClass = _
(BN
) most format characters, control codes, or noncharacters
sourcepub const FirstStrongIsolate: BidiClass = _
pub const FirstStrongIsolate: BidiClass = _
(FSI
) U+2068: the first strong isolate control
sourcepub const LeftToRightIsolate: BidiClass = _
pub const LeftToRightIsolate: BidiClass = _
(LRI
) U+2066: the LR isolate control
sourcepub const RightToLeftIsolate: BidiClass = _
pub const RightToLeftIsolate: BidiClass = _
(RLI
) U+2067: the RL isolate control
sourcepub const PopDirectionalIsolate: BidiClass = _
pub const PopDirectionalIsolate: BidiClass = _
(PDI
) U+2069: terminates an isolate control
Trait Implementations§
source§impl<'de> Deserialize<'de> for BidiClass
impl<'de> Deserialize<'de> for BidiClass
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl EnumeratedProperty for BidiClass
impl EnumeratedProperty for BidiClass
source§impl Ord for BidiClass
impl Ord for BidiClass
source§impl PartialOrd for BidiClass
impl PartialOrd for BidiClass
source§impl TrieValue for BidiClass
impl TrieValue for BidiClass
source§type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
source§fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
u32
first.impl Copy for BidiClass
impl Eq for BidiClass
impl NamedEnumeratedProperty for BidiClass
impl ParseableEnumeratedProperty for BidiClass
impl StructuralPartialEq for BidiClass
Auto Trait Implementations§
impl Freeze for BidiClass
impl RefUnwindSafe for BidiClass
impl Send for BidiClass
impl Sync for BidiClass
impl Unpin for BidiClass
impl UnwindSafe for BidiClass
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more