Struct icu_properties::props::EastAsianWidth
source · #[repr(transparent)]pub struct EastAsianWidth(/* private fields */);
Expand description
Enumerated property East_Asian_Width.
See “Definition” in UAX #11 for the summary of each property value: https://www.unicode.org/reports/tr11/#Definitions
The numeric value is compatible with UEastAsianWidth
in ICU4C.
Implementations§
source§impl EastAsianWidth
impl EastAsianWidth
pub const Neutral: EastAsianWidth = _
pub const Ambiguous: EastAsianWidth = _
pub const Halfwidth: EastAsianWidth = _
pub const Fullwidth: EastAsianWidth = _
pub const Narrow: EastAsianWidth = _
pub const Wide: EastAsianWidth = _
sourcepub const ALL_VALUES: &'static [EastAsianWidth] = _
pub const ALL_VALUES: &'static [EastAsianWidth] = _
All possible values of this enum in the Unicode version from this ICU4X release.
Trait Implementations§
source§impl AsULE for EastAsianWidth
impl AsULE for EastAsianWidth
source§impl Bake for EastAsianWidth
impl Bake for EastAsianWidth
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl BakeSize for EastAsianWidth
impl BakeSize for EastAsianWidth
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for EastAsianWidth
impl Clone for EastAsianWidth
source§fn clone(&self) -> EastAsianWidth
fn clone(&self) -> EastAsianWidth
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 EastAsianWidth
impl Debug for EastAsianWidth
source§impl<'de> Deserialize<'de> for EastAsianWidth
impl<'de> Deserialize<'de> for EastAsianWidth
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 EnumeratedProperty for EastAsianWidth
impl EnumeratedProperty for EastAsianWidth
source§impl From<EastAsianWidth> for u16
impl From<EastAsianWidth> for u16
source§fn from(other: EastAsianWidth) -> Self
fn from(other: EastAsianWidth) -> Self
Converts to this type from the input type.
source§impl Hash for EastAsianWidth
impl Hash for EastAsianWidth
source§impl Ord for EastAsianWidth
impl Ord for EastAsianWidth
source§fn cmp(&self, other: &EastAsianWidth) -> Ordering
fn cmp(&self, other: &EastAsianWidth) -> 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 EastAsianWidth
impl PartialEq for EastAsianWidth
source§impl PartialOrd for EastAsianWidth
impl PartialOrd for EastAsianWidth
source§impl Serialize for EastAsianWidth
impl Serialize for EastAsianWidth
source§impl TrieValue for EastAsianWidth
impl TrieValue for EastAsianWidth
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 EastAsianWidth
impl Eq for EastAsianWidth
impl NamedEnumeratedProperty for EastAsianWidth
impl ParseableEnumeratedProperty for EastAsianWidth
impl StructuralPartialEq for EastAsianWidth
Auto Trait Implementations§
impl Freeze for EastAsianWidth
impl RefUnwindSafe for EastAsianWidth
impl Send for EastAsianWidth
impl Sync for EastAsianWidth
impl Unpin for EastAsianWidth
impl UnwindSafe for EastAsianWidth
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