Struct icu::properties::SentenceBreak
source · [−]#[repr(transparent)]pub struct SentenceBreak(pub u8);
Expand description
Enumerated property Sentence_Break. See “Default Sentence 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 USentenceBreak
in ICU4C.
Tuple Fields
0: u8
Implementations
sourceimpl SentenceBreak
impl SentenceBreak
pub const Other: SentenceBreak
pub const ATerm: SentenceBreak
pub const Close: SentenceBreak
pub const Format: SentenceBreak
pub const Lower: SentenceBreak
pub const Numeric: SentenceBreak
pub const OLetter: SentenceBreak
pub const Sep: SentenceBreak
pub const Sp: SentenceBreak
pub const STerm: SentenceBreak
pub const Upper: SentenceBreak
pub const CR: SentenceBreak
pub const Extend: SentenceBreak
pub const LF: SentenceBreak
pub const SContinue: SentenceBreak
Trait Implementations
sourceimpl AsULE for SentenceBreak
impl AsULE for SentenceBreak
sourcefn to_unaligned(self) -> <SentenceBreak as AsULE>::ULE
fn to_unaligned(self) -> <SentenceBreak as AsULE>::ULE
Converts from Self
to Self::ULE
. Read more
sourcefn from_unaligned(unaligned: <SentenceBreak as AsULE>::ULE) -> SentenceBreak
fn from_unaligned(unaligned: <SentenceBreak as AsULE>::ULE) -> SentenceBreak
Converts from Self::ULE
to Self
. Read more
sourceimpl Bake for SentenceBreak
impl Bake for SentenceBreak
sourcefn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Returns a TokenStream
that would evaluate to self
. Read more
sourceimpl Clone for SentenceBreak
impl Clone for SentenceBreak
sourcefn clone(&self) -> SentenceBreak
fn clone(&self) -> SentenceBreak
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SentenceBreak
impl Debug for SentenceBreak
sourceimpl<'de> Deserialize<'de> for SentenceBreak
impl<'de> Deserialize<'de> for SentenceBreak
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SentenceBreak, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SentenceBreak, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for SentenceBreak
impl Ord for SentenceBreak
sourceimpl PartialEq<SentenceBreak> for SentenceBreak
impl PartialEq<SentenceBreak> for SentenceBreak
sourcefn eq(&self, other: &SentenceBreak) -> bool
fn eq(&self, other: &SentenceBreak) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SentenceBreak) -> bool
fn ne(&self, other: &SentenceBreak) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SentenceBreak> for SentenceBreak
impl PartialOrd<SentenceBreak> for SentenceBreak
sourcefn partial_cmp(&self, other: &SentenceBreak) -> Option<Ordering>
fn partial_cmp(&self, other: &SentenceBreak) -> 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 SentenceBreak
impl Serialize for SentenceBreak
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 SentenceBreak
impl TrieValue for SentenceBreak
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<SentenceBreak, <SentenceBreak as TrieValue>::TryFromU32Error>
fn try_from_u32(
i: u32
) -> Result<SentenceBreak, <SentenceBreak 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 SentenceBreak
impl<'a> ZeroMapKV<'a> for SentenceBreak
type Container = ZeroVec<'a, SentenceBreak>
type Container = ZeroVec<'a, SentenceBreak>
The container that can be used with this type: ZeroVec
or VarZeroVec
.
type Slice = ZeroSlice<SentenceBreak>
type OwnedType = SentenceBreak
type OwnedType = SentenceBreak
The type produced by Container::replace()
and Container::remove()
,
also used during deserialization. If Self
is human readable serialized,
deserializing to Self::OwnedType
should produce the same value once
passed through Self::owned_as_self()
Read more
impl Copy for SentenceBreak
impl Eq for SentenceBreak
impl StructuralEq for SentenceBreak
impl StructuralPartialEq for SentenceBreak
Auto Trait Implementations
impl RefUnwindSafe for SentenceBreak
impl Send for SentenceBreak
impl Sync for SentenceBreak
impl Unpin for SentenceBreak
impl UnwindSafe for SentenceBreak
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