Struct icu::properties::WordBreak
source · [−]#[repr(transparent)]pub struct WordBreak(pub u8);
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.
The numeric value is compatible with UWordBreakValues
in ICU4C.
Tuple Fields
0: u8
Implementations
sourceimpl 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
Trait Implementations
sourceimpl Bake for WordBreak
impl Bake for WordBreak
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evaluate to self
. Read more
sourceimpl<'de> Deserialize<'de> for WordBreak
impl<'de> Deserialize<'de> for WordBreak
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<WordBreak, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<WordBreak, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for WordBreak
impl Ord for WordBreak
sourceimpl PartialOrd<WordBreak> for WordBreak
impl PartialOrd<WordBreak> for WordBreak
sourcefn partial_cmp(&self, other: &WordBreak) -> Option<Ordering>
fn partial_cmp(&self, other: &WordBreak) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for WordBreak
impl Serialize for WordBreak
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
sourceimpl TrieValue for WordBreak
impl TrieValue for WordBreak
type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
Last-resort fallback value to return if we cannot read data from the trie. Read more
sourcefn try_from_u32(
i: u32
) -> Result<WordBreak, <WordBreak as TrieValue>::TryFromU32Error>
fn try_from_u32(
i: u32
) -> Result<WordBreak, <WordBreak as TrieValue>::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. Read more
sourceimpl<'a> ZeroMapKV<'a> for WordBreak
impl<'a> ZeroMapKV<'a> for WordBreak
impl Copy for WordBreak
impl Eq for WordBreak
impl StructuralEq for WordBreak
impl StructuralPartialEq for WordBreak
Auto Trait Implementations
impl RefUnwindSafe for WordBreak
impl Send for WordBreak
impl Sync for WordBreak
impl Unpin for WordBreak
impl UnwindSafe for WordBreak
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more