Struct icu::properties::sets::UnicodeSetDataBorrowed
source · pub struct UnicodeSetDataBorrowed<'a> { /* private fields */ }
Expand description
A borrowed wrapper around code point set data, returned by
UnicodeSetData::as_borrowed()
. More efficient to query.
Implementations§
source§impl<'a> UnicodeSetDataBorrowed<'a>
impl<'a> UnicodeSetDataBorrowed<'a>
sourcepub fn contains(self, s: &str) -> bool
pub fn contains(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
Check if the set contains a character as a UTF32 code unit
sourcepub fn contains_char(&self, ch: char) -> bool
pub fn contains_char(&self, ch: char) -> bool
Check if the set contains the code point corresponding to the Rust character.
Trait Implementations§
source§impl<'a> Clone for UnicodeSetDataBorrowed<'a>
impl<'a> Clone for UnicodeSetDataBorrowed<'a>
source§fn clone(&self) -> UnicodeSetDataBorrowed<'a>
fn clone(&self) -> UnicodeSetDataBorrowed<'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 more