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::{CodePointMapData, props::JoiningType};
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
pub const NonJoining: Self
pub const U: Self = Self::NonJoining
pub const JoinCausing: Self
pub const C: Self = Self::JoinCausing
pub const DualJoining: Self
pub const D: Self = Self::DualJoining
pub const LeftJoining: Self
pub const L: Self = Self::LeftJoining
pub const RightJoining: Self
pub const R: Self = Self::RightJoining
pub const Transparent: Self
pub const T: Self = Self::Transparent
Source§impl JoiningType
impl JoiningType
Sourcepub const ALL_VALUES: &'static [Self]
👎Deprecated
pub const ALL_VALUES: &'static [Self]
Deprecated
Source§impl JoiningType
impl JoiningType
Sourcepub const fn to_icu4c_value(self) -> u8
👎Deprecated since 2.3.0: please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
pub const fn to_icu4c_value(self) -> u8
please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
Returns an ICU4C UJoiningType value.
Sourcepub const fn from_icu4c_value(value: u8) -> Self
👎Deprecated since 2.3.0: please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
pub const fn from_icu4c_value(value: u8) -> Self
please comment on https://github.com/unicode-org/icu4x/issues/6067 if you need this
Constructor from an ICU4C UJoiningType value.
Trait Implementations§
Source§impl AsULE for JoiningType
impl AsULE for JoiningType
Source§impl Clone for JoiningType
impl Clone for JoiningType
Source§fn clone(&self) -> JoiningType
fn clone(&self) -> JoiningType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JoiningType
Source§impl Debug for JoiningType
impl Debug for JoiningType
Source§impl Default for JoiningType
impl Default for JoiningType
Source§impl EnumeratedProperty for JoiningType
impl EnumeratedProperty for JoiningType
impl Eq for JoiningType
Source§impl From<JoiningType> for u16
impl From<JoiningType> for u16
Source§fn from(other: JoiningType) -> Self
fn from(other: JoiningType) -> Self
Converts to this type from the input type.
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 (const: unstable) · 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
impl ParseableEnumeratedProperty for JoiningType
Source§impl PartialEq for JoiningType
impl PartialEq for JoiningType
Source§impl PartialOrd for JoiningType
impl PartialOrd for JoiningType
impl StructuralPartialEq for JoiningType
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<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.Auto Trait Implementations§
impl Freeze for JoiningType
impl RefUnwindSafe for JoiningType
impl Send for JoiningType
impl Sync for JoiningType
impl Unpin for JoiningType
impl UnsafeUnpin 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