pub struct WordBreak(/* private fields */);
Expand description
Enumerated property Word_Break.
See “Default Word Boundary Specification” in UAX #29 for the summary of each property value: https://www.unicode.org/reports/tr29/#Default_Word_Boundaries.
Implementations§
Source§impl WordBreak
impl WordBreak
Sourcepub const fn to_icu4c_value(self) -> u8
pub const fn to_icu4c_value(self) -> u8
Returns an ICU4C UWordBreak
value.
Sourcepub const fn from_icu4c_value(value: u8) -> Self
pub const fn from_icu4c_value(value: u8) -> Self
Constructor from an ICU4C UWordBreak
value.
Source§impl WordBreak
impl WordBreak
pub const Other: WordBreak
pub const ALetter: WordBreak
pub const Format: WordBreak
pub const Katakana: WordBreak
pub const MidLetter: WordBreak
pub const MidNum: WordBreak
pub const Numeric: WordBreak
pub const ExtendNumLet: WordBreak
pub const CR: WordBreak
pub const Extend: WordBreak
pub const LF: WordBreak
pub const MidNumLet: WordBreak
pub const Newline: WordBreak
pub const RegionalIndicator: WordBreak
pub const HebrewLetter: WordBreak
pub const SingleQuote: WordBreak
pub const DoubleQuote: WordBreak
Sourcepub const GlueAfterZwj: WordBreak
pub const GlueAfterZwj: WordBreak
This value is obsolete and unused.
pub const ZWJ: WordBreak
pub const WSegSpace: WordBreak
Sourcepub const ALL_VALUES: &'static [WordBreak]
pub const ALL_VALUES: &'static [WordBreak]
All possible values of this enum in the Unicode version from this ICU4X release.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WordBreak
impl<'de> Deserialize<'de> for WordBreak
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EnumeratedProperty for WordBreak
impl EnumeratedProperty for WordBreak
Source§impl NamedEnumeratedProperty for WordBreak
impl NamedEnumeratedProperty for WordBreak
Source§fn try_from_str(s: &str) -> Option<Self>
fn try_from_str(s: &str) -> Option<Self>
Convenience method for
PropertyParser::new().get_loose(s)
Read moreSource§fn long_name(&self) -> &'static str
fn long_name(&self) -> &'static str
Convenience method for
PropertyNamesLong::new().get(*self).unwrap()
Read moreSource§fn short_name(&self) -> &'static str
fn short_name(&self) -> &'static str
Convenience method for
PropertyNamesShort::new().get(*self).unwrap()
Read moreSource§impl Ord for WordBreak
impl Ord for WordBreak
Source§impl PartialOrd for WordBreak
impl PartialOrd for WordBreak
Source§impl TrieValue for WordBreak
impl TrieValue for WordBreak
Source§type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
Last-resort fallback value to return if we cannot read data from the trie. Read more
Source§fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
A parsing function that is primarily motivated by deserialization contexts.
When the serialization type width is smaller than 32 bits, then it is expected
that the call site will widen the value to a
u32
first.impl Copy for WordBreak
impl Eq for WordBreak
impl ParseableEnumeratedProperty for WordBreak
impl StructuralPartialEq 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