pub struct IndicConjunctBreak(/* private fields */);Expand description
Property Indic_Conjunct_Break. See UAX #44: https://www.unicode.org/reports/tr44/#Indic_Conjunct_Break.
§Example
use icu::properties::{props::IndicConjunctBreak, CodePointMapData};
assert_eq!(
CodePointMapData::<IndicConjunctBreak>::new().get('a'),
IndicConjunctBreak::None
);
assert_eq!(
CodePointMapData::<IndicConjunctBreak>::new().get('\u{094d}'),
IndicConjunctBreak::Linker
);
assert_eq!(
CodePointMapData::<IndicConjunctBreak>::new().get('\u{0915}'),
IndicConjunctBreak::Consonant
);
assert_eq!(
CodePointMapData::<IndicConjunctBreak>::new().get('\u{0300}'),
IndicConjunctBreak::Extend
);Implementations§
Source§impl IndicConjunctBreak
impl IndicConjunctBreak
Sourcepub const fn to_icu4c_value(self) -> u8
pub const fn to_icu4c_value(self) -> u8
Returns an ICU4C UIndicConjunctBreak value.
Sourcepub const fn from_icu4c_value(value: u8) -> IndicConjunctBreak
pub const fn from_icu4c_value(value: u8) -> IndicConjunctBreak
Constructor from an ICU4C UIndicConjunctBreak value.
Source§impl IndicConjunctBreak
impl IndicConjunctBreak
pub const None: IndicConjunctBreak
pub const Consonant: IndicConjunctBreak
pub const Extend: IndicConjunctBreak
pub const Linker: IndicConjunctBreak
Sourcepub const ALL_VALUES: &'static [IndicConjunctBreak]
pub const ALL_VALUES: &'static [IndicConjunctBreak]
All possible values of this enum in the Unicode version from this ICU4X release.
Trait Implementations§
Source§impl AsULE for IndicConjunctBreak
impl AsULE for IndicConjunctBreak
Source§fn to_unaligned(self) -> <IndicConjunctBreak as AsULE>::ULE
fn to_unaligned(self) -> <IndicConjunctBreak as AsULE>::ULE
Source§fn from_unaligned(
unaligned: <IndicConjunctBreak as AsULE>::ULE,
) -> IndicConjunctBreak
fn from_unaligned( unaligned: <IndicConjunctBreak as AsULE>::ULE, ) -> IndicConjunctBreak
Source§impl Clone for IndicConjunctBreak
impl Clone for IndicConjunctBreak
Source§fn clone(&self) -> IndicConjunctBreak
fn clone(&self) -> IndicConjunctBreak
Returns a duplicate 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 IndicConjunctBreak
impl Debug for IndicConjunctBreak
Source§impl<'de> Deserialize<'de> for IndicConjunctBreak
impl<'de> Deserialize<'de> for IndicConjunctBreak
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndicConjunctBreak, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndicConjunctBreak, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for IndicConjunctBreak
impl Hash for IndicConjunctBreak
Source§impl NamedEnumeratedProperty for IndicConjunctBreak
impl NamedEnumeratedProperty for IndicConjunctBreak
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 IndicConjunctBreak
impl Ord for IndicConjunctBreak
Source§fn cmp(&self, other: &IndicConjunctBreak) -> Ordering
fn cmp(&self, other: &IndicConjunctBreak) -> 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 IndicConjunctBreak
impl PartialEq for IndicConjunctBreak
Source§impl PartialOrd for IndicConjunctBreak
impl PartialOrd for IndicConjunctBreak
Source§impl Serialize for IndicConjunctBreak
impl Serialize for IndicConjunctBreak
Source§fn 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
Source§impl TrieValue for IndicConjunctBreak
impl TrieValue for IndicConjunctBreak
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<IndicConjunctBreak, <IndicConjunctBreak as TrieValue>::TryFromU32Error>
fn try_from_u32( i: u32, ) -> Result<IndicConjunctBreak, <IndicConjunctBreak 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.impl Copy for IndicConjunctBreak
impl Eq for IndicConjunctBreak
impl ParseableEnumeratedProperty for IndicConjunctBreak
impl StructuralPartialEq for IndicConjunctBreak
Auto Trait Implementations§
impl Freeze for IndicConjunctBreak
impl RefUnwindSafe for IndicConjunctBreak
impl Send for IndicConjunctBreak
impl Sync for IndicConjunctBreak
impl Unpin for IndicConjunctBreak
impl UnwindSafe for IndicConjunctBreak
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