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