Struct icu::properties::props::GraphemeExtend
source · #[non_exhaustive]pub struct GraphemeExtend;
Expand description
Property used to define “Grapheme extender”.
See D59 in Chapter 3, Conformance in the Unicode Standard.
§Example
use icu::properties::CodePointSetData;
use icu::properties::props::GraphemeExtend;
let grapheme_extend = CodePointSetData::new::<GraphemeExtend>();
assert!(!grapheme_extend.contains('ക')); // U+0D15 MALAYALAM LETTER KA
assert!(!grapheme_extend.contains('\u{0D3F}')); // U+0D3F MALAYALAM VOWEL SIGN I
assert!(grapheme_extend.contains('\u{0D3E}')); // U+0D3E MALAYALAM VOWEL SIGN AA
Trait Implementations§
source§impl BinaryProperty for GraphemeExtend
impl BinaryProperty for GraphemeExtend
Auto Trait Implementations§
impl Freeze for GraphemeExtend
impl RefUnwindSafe for GraphemeExtend
impl Send for GraphemeExtend
impl Sync for GraphemeExtend
impl Unpin for GraphemeExtend
impl UnwindSafe for GraphemeExtend
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