Struct icu_capi::properties_maps::ffi::CodePointMapData16
source · pub struct CodePointMapData16(/* private fields */);
Expand description
An ICU4X Unicode Map Property object, capable of querying whether a code point (key) to obtain the Unicode property value, for a specific Unicode property.
For properties whose values fit into 16 bits.
Implementations§
source§impl CodePointMapData16
impl CodePointMapData16
sourcepub fn iter_ranges_for_value<'a>(
&'a self,
value: u16,
) -> Box<CodePointRangeIterator<'a>>
pub fn iter_ranges_for_value<'a>( &'a self, value: u16, ) -> Box<CodePointRangeIterator<'a>>
Produces an iterator over ranges of code points that map to value
sourcepub fn iter_ranges_for_value_complemented<'a>(
&'a self,
value: u16,
) -> Box<CodePointRangeIterator<'a>>
pub fn iter_ranges_for_value_complemented<'a>( &'a self, value: u16, ) -> Box<CodePointRangeIterator<'a>>
Produces an iterator over ranges of code points that do not map to value
sourcepub fn get_set_for_value(&self, value: u16) -> Box<CodePointSetData>
pub fn get_set_for_value(&self, value: u16) -> Box<CodePointSetData>
Gets a CodePointSetData
representing all entries in this map that map to the given value
sourcepub fn create_script() -> Box<CodePointMapData16>
pub fn create_script() -> Box<CodePointMapData16>
Create a map for the Script
property, using compiled data.
sourcepub fn create_script_with_provider(
provider: &DataProvider,
) -> Result<Box<CodePointMapData16>, DataError>
pub fn create_script_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointMapData16>, DataError>
Create a map for the Script
property, using a particular data source.
Auto Trait Implementations§
impl Freeze for CodePointMapData16
impl RefUnwindSafe for CodePointMapData16
impl Send for CodePointMapData16
impl Sync for CodePointMapData16
impl Unpin for CodePointMapData16
impl UnwindSafe for CodePointMapData16
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