#[repr(C)]pub enum WordBreak {
Show 23 variants
Other = 0,
ALetter = 1,
Format = 2,
Katakana = 3,
MidLetter = 4,
MidNum = 5,
Numeric = 6,
ExtendNumLet = 7,
CR = 8,
Extend = 9,
LF = 10,
MidNumLet = 11,
Newline = 12,
RegionalIndicator = 13,
HebrewLetter = 14,
SingleQuote = 15,
DoubleQuote = 16,
EBase = 17,
EBaseGAZ = 18,
EModifier = 19,
GlueAfterZwj = 20,
ZWJ = 21,
WSegSpace = 22,
}
Variants§
Other = 0
ALetter = 1
Format = 2
Katakana = 3
MidLetter = 4
MidNum = 5
Numeric = 6
ExtendNumLet = 7
CR = 8
Extend = 9
LF = 10
MidNumLet = 11
Newline = 12
RegionalIndicator = 13
HebrewLetter = 14
SingleQuote = 15
DoubleQuote = 16
EBase = 17
EBaseGAZ = 18
EModifier = 19
GlueAfterZwj = 20
ZWJ = 21
WSegSpace = 22
Implementations§
Source§impl WordBreak
impl WordBreak
pub fn for_char(ch: DiplomatChar) -> Self
Sourcepub fn long_name(self) -> Option<&'static str>
pub fn long_name(self) -> Option<&'static str>
Get the “long” name of this property value (returns empty if property value is unknown)
Sourcepub fn short_name(self) -> Option<&'static str>
pub fn short_name(self) -> Option<&'static str>
Get the “short” name of this property value (returns empty if property value is unknown)
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§
impl Copy for WordBreak
Auto Trait Implementations§
impl Freeze for WordBreak
impl RefUnwindSafe for WordBreak
impl Send for WordBreak
impl Sync for WordBreak
impl Unpin for WordBreak
impl UnwindSafe for WordBreak
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