Struct icu::properties::GraphemeClusterBreak
source · [−]#[repr(transparent)]pub struct GraphemeClusterBreak(pub u8);
Expand description
Enumerated property Grapheme_Cluster_Break.
See “Default Grapheme Cluster Boundary Specification” in UAX #29 for the summary of each property value: https://www.unicode.org/reports/tr29/#Default_Grapheme_Cluster_Table
The numeric value is compatible with UGraphemeClusterBreak
in ICU4C.
Tuple Fields
0: u8
Implementations
sourceimpl GraphemeClusterBreak
impl GraphemeClusterBreak
pub const Other: GraphemeClusterBreak
pub const Control: GraphemeClusterBreak
pub const CR: GraphemeClusterBreak
pub const Extend: GraphemeClusterBreak
pub const L: GraphemeClusterBreak
pub const LF: GraphemeClusterBreak
pub const LV: GraphemeClusterBreak
pub const LVT: GraphemeClusterBreak
pub const T: GraphemeClusterBreak
pub const V: GraphemeClusterBreak
pub const SpacingMark: GraphemeClusterBreak
pub const Prepend: GraphemeClusterBreak
pub const RegionalIndicator: GraphemeClusterBreak
sourcepub const EBase: GraphemeClusterBreak
pub const EBase: GraphemeClusterBreak
This value is obsolete and unused.
sourcepub const EBaseGAZ: GraphemeClusterBreak
pub const EBaseGAZ: GraphemeClusterBreak
This value is obsolete and unused.
sourcepub const EModifier: GraphemeClusterBreak
pub const EModifier: GraphemeClusterBreak
This value is obsolete and unused.
sourcepub const GlueAfterZwj: GraphemeClusterBreak
pub const GlueAfterZwj: GraphemeClusterBreak
This value is obsolete and unused.
pub const ZWJ: GraphemeClusterBreak
Trait Implementations
sourceimpl AsULE for GraphemeClusterBreak
impl AsULE for GraphemeClusterBreak
sourcefn to_unaligned(self) -> <GraphemeClusterBreak as AsULE>::ULE
fn to_unaligned(self) -> <GraphemeClusterBreak as AsULE>::ULE
Converts from Self
to Self::ULE
. Read more
sourcefn from_unaligned(
unaligned: <GraphemeClusterBreak as AsULE>::ULE
) -> GraphemeClusterBreak
fn from_unaligned(
unaligned: <GraphemeClusterBreak as AsULE>::ULE
) -> GraphemeClusterBreak
Converts from Self::ULE
to Self
. Read more
sourceimpl Bake for GraphemeClusterBreak
impl Bake for GraphemeClusterBreak
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 GraphemeClusterBreak
impl Clone for GraphemeClusterBreak
sourcefn clone(&self) -> GraphemeClusterBreak
fn clone(&self) -> GraphemeClusterBreak
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 GraphemeClusterBreak
impl Debug for GraphemeClusterBreak
sourceimpl<'de> Deserialize<'de> for GraphemeClusterBreak
impl<'de> Deserialize<'de> for GraphemeClusterBreak
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<GraphemeClusterBreak, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<GraphemeClusterBreak, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for GraphemeClusterBreak
impl Ord for GraphemeClusterBreak
sourceimpl PartialEq<GraphemeClusterBreak> for GraphemeClusterBreak
impl PartialEq<GraphemeClusterBreak> for GraphemeClusterBreak
sourcefn eq(&self, other: &GraphemeClusterBreak) -> bool
fn eq(&self, other: &GraphemeClusterBreak) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GraphemeClusterBreak) -> bool
fn ne(&self, other: &GraphemeClusterBreak) -> bool
This method tests for !=
.
sourceimpl PartialOrd<GraphemeClusterBreak> for GraphemeClusterBreak
impl PartialOrd<GraphemeClusterBreak> for GraphemeClusterBreak
sourcefn partial_cmp(&self, other: &GraphemeClusterBreak) -> Option<Ordering>
fn partial_cmp(&self, other: &GraphemeClusterBreak) -> 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 GraphemeClusterBreak
impl Serialize for GraphemeClusterBreak
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 GraphemeClusterBreak
impl TrieValue for GraphemeClusterBreak
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<GraphemeClusterBreak, <GraphemeClusterBreak as TrieValue>::TryFromU32Error>
fn try_from_u32(
i: u32
) -> Result<GraphemeClusterBreak, <GraphemeClusterBreak 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 GraphemeClusterBreak
impl<'a> ZeroMapKV<'a> for GraphemeClusterBreak
type Container = ZeroVec<'a, GraphemeClusterBreak>
type Container = ZeroVec<'a, GraphemeClusterBreak>
The container that can be used with this type: ZeroVec
or VarZeroVec
.
type Slice = ZeroSlice<GraphemeClusterBreak>
type OwnedType = GraphemeClusterBreak
type OwnedType = GraphemeClusterBreak
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 GraphemeClusterBreak
impl Eq for GraphemeClusterBreak
impl StructuralEq for GraphemeClusterBreak
impl StructuralPartialEq for GraphemeClusterBreak
Auto Trait Implementations
impl RefUnwindSafe for GraphemeClusterBreak
impl Send for GraphemeClusterBreak
impl Sync for GraphemeClusterBreak
impl Unpin for GraphemeClusterBreak
impl UnwindSafe for GraphemeClusterBreak
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