Struct icu_capi::properties_sets::ffi::ICU4XCodePointSetData

source ·
pub struct ICU4XCodePointSetData(pub CodePointSetData);
Expand description

An ICU4X Unicode Set Property object, capable of querying whether a code point is contained in a set based on a Unicode property.

Tuple Fields§

§0: CodePointSetData

Implementations§

source§

impl ICU4XCodePointSetData

source

pub fn contains(&self, cp: DiplomatChar) -> bool

Checks whether the code point is in the set.

source

pub fn contains32(&self, cp: u32) -> bool

Checks whether the code point (specified as a 32 bit integer, in UTF-32) is in the set.

source

pub fn iter_ranges<'a>(&'a self) -> Box<CodePointRangeIterator<'a>>

Produces an iterator over ranges of code points contained in this set

source

pub fn iter_ranges_complemented<'a>(&'a self) -> Box<CodePointRangeIterator<'a>>

Produces an iterator over ranges of code points not contained in this set

source

pub fn load_for_general_category_group( provider: &ICU4XDataProvider, group: u32, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

which is a mask with the same format as the U_GC_XX_MASK mask in ICU4C

source

pub fn load_ascii_hex_digit( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_alnum( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_alphabetic( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_bidi_control( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_bidi_mirrored( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_blank( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_cased( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_case_ignorable( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_full_composition_exclusion( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_changes_when_casefolded( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_changes_when_casemapped( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_changes_when_nfkc_casefolded( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_changes_when_lowercased( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_changes_when_titlecased( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_changes_when_uppercased( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_dash( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_deprecated( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_default_ignorable_code_point( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_diacritic( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_emoji_modifier_base( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_emoji_component( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_emoji_modifier( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_emoji( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_emoji_presentation( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_extender( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_extended_pictographic( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_graph( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_grapheme_base( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_grapheme_extend( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_hex_digit( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_hyphen( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_id_continue( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_ideographic( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_id_start( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_ids_binary_operator( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_ids_trinary_operator( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_join_control( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_logical_order_exception( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_lowercase( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_math( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_noncharacter_code_point( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_nfc_inert( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_nfd_inert( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_nfkc_inert( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_nfkd_inert( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_pattern_syntax( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_pattern_white_space( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_prepended_concatenation_mark( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_print( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_quotation_mark( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_radical( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_regional_indicator( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_soft_dotted( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_segment_starter( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_case_sensitive( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_sentence_terminal( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_terminal_punctuation( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_unified_ideograph( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_uppercase( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_variation_selector( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_white_space( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_xdigit( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_xid_continue( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_xid_start( provider: &ICU4XDataProvider, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

source

pub fn load_for_ecma262( provider: &ICU4XDataProvider, property_name: &DiplomatStr, ) -> Result<Box<ICU4XCodePointSetData>, ICU4XError>

Loads data for a property specified as a string as long as it is one of the ECMA-262 binary properties (not including Any, ASCII, and Assigned pseudoproperties).

Returns ICU4XError::PropertyUnexpectedPropertyNameError in case the string does not match any property in the list

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Filterable for T

source§

fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T