#[repr(C)]pub enum SentenceBreak {
Show 15 variants
Other = 0,
ATerm = 1,
Close = 2,
Format = 3,
Lower = 4,
Numeric = 5,
OLetter = 6,
Sep = 7,
Sp = 8,
STerm = 9,
Upper = 10,
CR = 11,
Extend = 12,
LF = 13,
SContinue = 14,
}
Variants§
Other = 0
ATerm = 1
Close = 2
Format = 3
Lower = 4
Numeric = 5
OLetter = 6
Sep = 7
Sp = 8
STerm = 9
Upper = 10
CR = 11
Extend = 12
LF = 13
SContinue = 14
Implementations§
Source§impl SentenceBreak
impl SentenceBreak
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§
Source§impl Clone for SentenceBreak
impl Clone for SentenceBreak
Source§fn clone(&self) -> SentenceBreak
fn clone(&self) -> SentenceBreak
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<SentenceBreak> for SentenceBreak
impl From<SentenceBreak> for SentenceBreak
Source§fn from(other: SentenceBreak) -> Self
fn from(other: SentenceBreak) -> Self
Converts to this type from the input type.
Source§impl From<SentenceBreak> for SentenceBreak
impl From<SentenceBreak> for SentenceBreak
Source§fn from(this: SentenceBreak) -> Self
fn from(this: SentenceBreak) -> Self
Converts to this type from the input type.
impl Copy for SentenceBreak
Auto Trait Implementations§
impl Freeze for SentenceBreak
impl RefUnwindSafe for SentenceBreak
impl Send for SentenceBreak
impl Sync for SentenceBreak
impl Unpin for SentenceBreak
impl UnwindSafe for SentenceBreak
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