#[repr(C)]pub enum GraphemeClusterBreak {
Show 18 variants
Other = 0,
Control = 1,
CR = 2,
Extend = 3,
L = 4,
LF = 5,
LV = 6,
LVT = 7,
T = 8,
V = 9,
SpacingMark = 10,
Prepend = 11,
RegionalIndicator = 12,
EBase = 13,
EBaseGAZ = 14,
EModifier = 15,
GlueAfterZwj = 16,
ZWJ = 17,
}
Variants§
Other = 0
Control = 1
CR = 2
Extend = 3
L = 4
LF = 5
LV = 6
LVT = 7
T = 8
V = 9
SpacingMark = 10
Prepend = 11
RegionalIndicator = 12
EBase = 13
EBaseGAZ = 14
EModifier = 15
GlueAfterZwj = 16
ZWJ = 17
Implementations§
Source§impl GraphemeClusterBreak
impl GraphemeClusterBreak
pub fn for_char(ch: DiplomatChar) -> Self
Sourcepub fn to_integer_value(self) -> u8
pub fn to_integer_value(self) -> u8
Convert to an integer value usable with ICU4C and CodePointMapData
Sourcepub fn from_integer_value(other: u8) -> Option<Self>
pub fn from_integer_value(other: u8) -> Option<Self>
Convert from an integer value from ICU4C or CodePointMapData
Trait Implementations§
Source§impl Clone for GraphemeClusterBreak
impl Clone for GraphemeClusterBreak
Source§fn clone(&self) -> GraphemeClusterBreak
fn clone(&self) -> GraphemeClusterBreak
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl From<GraphemeClusterBreak> for GraphemeClusterBreak
impl From<GraphemeClusterBreak> for GraphemeClusterBreak
Source§fn from(other: GraphemeClusterBreak) -> Self
fn from(other: GraphemeClusterBreak) -> Self
Converts to this type from the input type.
Source§impl From<GraphemeClusterBreak> for GraphemeClusterBreak
impl From<GraphemeClusterBreak> for GraphemeClusterBreak
Source§fn from(this: GraphemeClusterBreak) -> Self
fn from(this: GraphemeClusterBreak) -> Self
Converts to this type from the input type.
impl Copy for GraphemeClusterBreak
Auto Trait Implementations§
impl Freeze for GraphemeClusterBreak
impl RefUnwindSafe for GraphemeClusterBreak
impl Send for GraphemeClusterBreak
impl Sync for GraphemeClusterBreak
impl Unpin for GraphemeClusterBreak
impl UnwindSafe for GraphemeClusterBreak
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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