Struct icu::properties::props::UnifiedIdeograph
source · #[non_exhaustive]pub struct UnifiedIdeograph;
Expand description
A property which specifies the exact set of Unified CJK Ideographs in the standard.
§Example
use icu::properties::CodePointSetData;
use icu::properties::props::UnifiedIdeograph;
let unified_ideograph = CodePointSetData::new::<UnifiedIdeograph>();
assert!(unified_ideograph.contains('川')); // U+5DDD CJK UNIFIED IDEOGRAPH-5DDD
assert!(unified_ideograph.contains('木')); // U+6728 CJK UNIFIED IDEOGRAPH-6728
assert!(!unified_ideograph.contains('𛅸')); // U+1B178 NUSHU CHARACTER-1B178
Trait Implementations§
source§impl BinaryProperty for UnifiedIdeograph
impl BinaryProperty for UnifiedIdeograph
Auto Trait Implementations§
impl Freeze for UnifiedIdeograph
impl RefUnwindSafe for UnifiedIdeograph
impl Send for UnifiedIdeograph
impl Sync for UnifiedIdeograph
impl Unpin for UnifiedIdeograph
impl UnwindSafe for UnifiedIdeograph
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> 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