pub struct JoiningType(/* private fields */);Expand description
Enumerated property Joining_Type.
See Section 9.2, Arabic Cursive Joining in The Unicode Standard for the summary of each property value.
§Example
use icu::properties::{props::JoiningType, CodePointMapData};
assert_eq!(
    CodePointMapData::<JoiningType>::new().get('ؠ'),
    JoiningType::DualJoining
); // U+0620: Arabic Letter Kashmiri Yeh
assert_eq!(
    CodePointMapData::<JoiningType>::new().get('𐫍'),
    JoiningType::LeftJoining
); // U+10ACD: Manichaean Letter HethImplementations§
Source§impl JoiningType
 
impl JoiningType
Sourcepub const fn to_icu4c_value(self) -> u8
 
pub const fn to_icu4c_value(self) -> u8
Returns an ICU4C UJoiningType value.
Sourcepub const fn from_icu4c_value(value: u8) -> JoiningType
 
pub const fn from_icu4c_value(value: u8) -> JoiningType
Constructor from an ICU4C UJoiningType value.
Source§impl JoiningType
 
impl JoiningType
pub const NonJoining: JoiningType
pub const JoinCausing: JoiningType
pub const DualJoining: JoiningType
pub const LeftJoining: JoiningType
pub const RightJoining: JoiningType
pub const Transparent: JoiningType
Sourcepub const ALL_VALUES: &'static [JoiningType]
 
pub const ALL_VALUES: &'static [JoiningType]
All possible values of this enum in the Unicode version from this ICU4X release.
Trait Implementations§
Source§impl AsULE for JoiningType
 
impl AsULE for JoiningType
Source§fn to_unaligned(self) -> <JoiningType as AsULE>::ULE
 
fn to_unaligned(self) -> <JoiningType as AsULE>::ULE
Source§fn from_unaligned(unaligned: <JoiningType as AsULE>::ULE) -> JoiningType
 
fn from_unaligned(unaligned: <JoiningType as AsULE>::ULE) -> JoiningType
Source§impl Clone for JoiningType
 
impl Clone for JoiningType
Source§fn clone(&self) -> JoiningType
 
fn clone(&self) -> JoiningType
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 JoiningType
 
impl Debug for JoiningType
Source§impl<'de> Deserialize<'de> for JoiningType
 
impl<'de> Deserialize<'de> for JoiningType
Source§fn deserialize<__D>(
    __deserializer: __D,
) -> Result<JoiningType, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(
    __deserializer: __D,
) -> Result<JoiningType, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EnumeratedProperty for JoiningType
 
impl EnumeratedProperty for JoiningType
Source§impl Hash for JoiningType
 
impl Hash for JoiningType
Source§impl NamedEnumeratedProperty for JoiningType
 
impl NamedEnumeratedProperty for JoiningType
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 JoiningType
 
impl Ord for JoiningType
Source§fn cmp(&self, other: &JoiningType) -> Ordering
 
fn cmp(&self, other: &JoiningType) -> 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 JoiningType
 
impl PartialEq for JoiningType
Source§impl PartialOrd for JoiningType
 
impl PartialOrd for JoiningType
Source§impl Serialize for JoiningType
 
impl Serialize for JoiningType
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 JoiningType
 
impl TrieValue for JoiningType
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<JoiningType, <JoiningType as TrieValue>::TryFromU32Error>
 
fn try_from_u32( i: u32, ) -> Result<JoiningType, <JoiningType 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 JoiningType
impl Eq for JoiningType
impl ParseableEnumeratedProperty for JoiningType
impl StructuralPartialEq for JoiningType
Auto Trait Implementations§
impl Freeze for JoiningType
impl RefUnwindSafe for JoiningType
impl Send for JoiningType
impl Sync for JoiningType
impl Unpin for JoiningType
impl UnwindSafe for JoiningType
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