Struct icu::properties::EmojiSetDataBorrowed
source · pub struct EmojiSetDataBorrowed<'a> { /* private fields */ }
Expand description
A borrowed wrapper around code point set data, returned by
EmojiSetData::as_borrowed()
. More efficient to query.
Implementations§
source§impl EmojiSetDataBorrowed<'_>
impl EmojiSetDataBorrowed<'_>
sourcepub fn contains_str(self, s: &str) -> bool
pub fn contains_str(self, s: &str) -> bool
Check if the set contains the string. Strings consisting of one character are treated as a character/code point.
This matches ICU behavior for ICU’s UnicodeSet
.
sourcepub fn contains32(&self, cp: u32) -> bool
pub fn contains32(&self, cp: u32) -> bool
See Self::contains
.
source§impl EmojiSetDataBorrowed<'static>
impl EmojiSetDataBorrowed<'static>
sourcepub const fn static_to_owned(self) -> EmojiSetData
pub const fn static_to_owned(self) -> EmojiSetData
Cheaply converts a [EmojiSetDataBorrowed<'static>
] into a EmojiSetData
.
Note: Due to branching and indirection, using EmojiSetData
might inhibit some
compile-time optimizations that are possible with EmojiSetDataBorrowed
.
Trait Implementations§
source§impl<'a> Clone for EmojiSetDataBorrowed<'a>
impl<'a> Clone for EmojiSetDataBorrowed<'a>
source§fn clone(&self) -> EmojiSetDataBorrowed<'a>
fn clone(&self) -> EmojiSetDataBorrowed<'a>
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<'a> Debug for EmojiSetDataBorrowed<'a>
impl<'a> Debug for EmojiSetDataBorrowed<'a>
impl<'a> Copy for EmojiSetDataBorrowed<'a>
Auto Trait Implementations§
impl<'a> Freeze for EmojiSetDataBorrowed<'a>
impl<'a> RefUnwindSafe for EmojiSetDataBorrowed<'a>
impl<'a> Send for EmojiSetDataBorrowed<'a>
impl<'a> Sync for EmojiSetDataBorrowed<'a>
impl<'a> Unpin for EmojiSetDataBorrowed<'a>
impl<'a> UnwindSafe for EmojiSetDataBorrowed<'a>
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