Struct icu_properties::props::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§
source§impl 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 = _
sourcepub const ALL_VALUES: &'static [GraphemeClusterBreak] = _
pub const ALL_VALUES: &'static [GraphemeClusterBreak] = _
All possible values of this enum in the Unicode version from this ICU4X release.
Trait Implementations§
source§impl AsULE for GraphemeClusterBreak
impl AsULE for GraphemeClusterBreak
source§impl Bake for GraphemeClusterBreak
impl Bake for GraphemeClusterBreak
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl BakeSize for GraphemeClusterBreak
impl BakeSize for GraphemeClusterBreak
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for GraphemeClusterBreak
impl Clone for GraphemeClusterBreak
source§fn clone(&self) -> GraphemeClusterBreak
fn clone(&self) -> GraphemeClusterBreak
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 Debug for GraphemeClusterBreak
impl Debug for GraphemeClusterBreak
source§impl<'de> Deserialize<'de> for GraphemeClusterBreak
impl<'de> Deserialize<'de> for GraphemeClusterBreak
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 From<GraphemeClusterBreak> for u16
impl From<GraphemeClusterBreak> for u16
source§fn from(other: GraphemeClusterBreak) -> Self
fn from(other: GraphemeClusterBreak) -> Self
Converts to this type from the input type.
source§impl Hash for GraphemeClusterBreak
impl Hash for GraphemeClusterBreak
source§impl Ord for GraphemeClusterBreak
impl Ord for GraphemeClusterBreak
source§fn cmp(&self, other: &GraphemeClusterBreak) -> Ordering
fn cmp(&self, other: &GraphemeClusterBreak) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GraphemeClusterBreak
impl PartialEq for GraphemeClusterBreak
source§impl PartialOrd for GraphemeClusterBreak
impl PartialOrd for GraphemeClusterBreak
source§impl Serialize for GraphemeClusterBreak
impl Serialize for GraphemeClusterBreak
source§impl TrieValue for GraphemeClusterBreak
impl TrieValue for GraphemeClusterBreak
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 GraphemeClusterBreak
impl Eq for GraphemeClusterBreak
impl NamedEnumeratedProperty for GraphemeClusterBreak
impl ParseableEnumeratedProperty for GraphemeClusterBreak
impl StructuralPartialEq for GraphemeClusterBreak
Auto Trait Implementations§
impl Freeze for GraphemeClusterBreak
impl RefUnwindSafe for GraphemeClusterBreak
impl Send for GraphemeClusterBreak
impl Sync for GraphemeClusterBreak
impl Unpin for GraphemeClusterBreak
impl UnwindSafe for GraphemeClusterBreak
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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