pub struct GraphemeClusterBreak(/* private fields */);
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
Implementations§
Source§impl GraphemeClusterBreak
impl GraphemeClusterBreak
Sourcepub const fn to_icu4c_value(self) -> u8
pub const fn to_icu4c_value(self) -> u8
Returns an ICU4C UGraphemeClusterBreak
value.
Sourcepub const fn from_icu4c_value(value: u8) -> Self
pub const fn from_icu4c_value(value: u8) -> Self
Constructor from an ICU4C UGraphemeClusterBreak
value.
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 NamedEnumeratedProperty for GraphemeClusterBreak
impl NamedEnumeratedProperty for GraphemeClusterBreak
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 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 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§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