Struct icu_capi::properties_sets::ffi::CodePointSetData

source ·
pub struct CodePointSetData(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 CodePointSetData

source

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

Checks whether the code point 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 create_general_category_group(group: u32) -> Box<CodePointSetData>

Produces a set for obtaining General Category Group values which is a mask with the same format as the U_GC_XX_MASK mask in ICU4C, using compiled data.

source

pub fn create_general_category_group_with_provider( provider: &DataProvider, group: u32, ) -> Result<Box<CodePointSetData>, DataError>

Produces a set for obtaining General Category Group values which is a mask with the same format as the U_GC_XX_MASK mask in ICU4C, using a provided data source.

source

pub fn create_ascii_hex_digit() -> Box<CodePointSetData>

Create a set for the Ascii_Hex_Digit property, using compiled data.

source

pub fn create_ascii_hex_digit_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Ascii_Hex_Digit property, using a particular data source.

source

pub fn create_alnum() -> Box<CodePointSetData>

Create a set for the Alnum property, using compiled data.

source

pub fn create_alnum_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Alnum property, using a particular data source.

source

pub fn create_alphabetic() -> Box<CodePointSetData>

Create a set for the Alphabetic property, using compiled data.

source

pub fn create_alphabetic_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Alphabetic property, using a particular data source.

source

pub fn create_bidi_control() -> Box<CodePointSetData>

Create a set for the Bidi_Control property, using compiled data.

source

pub fn create_bidi_control_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Bidi_Control property, using a particular data source.

source

pub fn create_bidi_mirrored() -> Box<CodePointSetData>

Create a set for the Bidi_Mirrored property, using compiled data.

source

pub fn create_bidi_mirrored_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Bidi_Mirrored property, using a particular data source.

source

pub fn create_blank() -> Box<CodePointSetData>

Create a set for the Blank property, using compiled data.

source

pub fn create_blank_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Blank property, using a particular data source.

source

pub fn create_cased() -> Box<CodePointSetData>

Create a set for the Cased property, using compiled data.

source

pub fn create_cased_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Cased property, using a particular data source.

source

pub fn create_case_ignorable() -> Box<CodePointSetData>

Create a set for the Case_Ignorable property, using compiled data.

source

pub fn create_case_ignorable_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Case_Ignorable property, using a particular data source.

source

pub fn create_full_composition_exclusion() -> Box<CodePointSetData>

Create a set for the Full_Composition_Exclusion property, using compiled data.

source

pub fn create_full_composition_exclusion_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Full_Composition_Exclusion property, using a particular data source.

source

pub fn create_changes_when_casefolded() -> Box<CodePointSetData>

Create a set for the Changes_When_Casefolded property, using compiled data.

source

pub fn create_changes_when_casefolded_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Changes_When_Casefolded property, using a particular data source.

source

pub fn create_changes_when_casemapped() -> Box<CodePointSetData>

Create a set for the Changes_When_Casemapped property, using compiled data.

source

pub fn create_changes_when_casemapped_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Changes_When_Casemapped property, using a particular data source.

source

pub fn create_changes_when_nfkc_casefolded() -> Box<CodePointSetData>

Create a set for the Changes_When_Nfkc_Casefolded property, using compiled data.

source

pub fn create_changes_when_nfkc_casefolded_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Changes_When_Nfkc_Casefolded property, using a particular data source.

source

pub fn create_changes_when_lowercased() -> Box<CodePointSetData>

Create a set for the Changes_When_Lowercased property, using compiled data.

source

pub fn create_changes_when_lowercased_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Changes_When_Lowercased property, using a particular data source.

source

pub fn create_changes_when_titlecased() -> Box<CodePointSetData>

Create a set for the Changes_When_Titlecased property, using compiled data.

source

pub fn create_changes_when_titlecased_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Changes_When_Titlecased property, using a particular data source.

source

pub fn create_changes_when_uppercased() -> Box<CodePointSetData>

Create a set for the Changes_When_Uppercased property, using compiled data.

source

pub fn create_changes_when_uppercased_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Changes_When_Uppercased property, using a particular data source.

source

pub fn create_dash() -> Box<CodePointSetData>

Create a set for the Dash property, using compiled data.

source

pub fn create_dash_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Dash property, using a particular data source.

source

pub fn create_deprecated() -> Box<CodePointSetData>

Create a set for the Deprecated property, using compiled data.

source

pub fn create_deprecated_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Deprecated property, using a particular data source.

source

pub fn create_default_ignorable_code_point() -> Box<CodePointSetData>

Create a set for the Default_Ignorable_Code_Point property, using compiled data.

source

pub fn create_default_ignorable_code_point_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Default_Ignorable_Code_Point property, using a particular data source.

source

pub fn create_diacritic() -> Box<CodePointSetData>

Create a set for the Diacritic property, using compiled data.

source

pub fn create_diacritic_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Diacritic property, using a particular data source.

source

pub fn create_emoji_modifier_base() -> Box<CodePointSetData>

Create a set for the Emoji_Modifier_Base property, using compiled data.

source

pub fn create_emoji_modifier_base_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Emoji_Modifier_Base property, using a particular data source.

source

pub fn create_emoji_component() -> Box<CodePointSetData>

Create a set for the Emoji_Component property, using compiled data.

source

pub fn create_emoji_component_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Emoji_Component property, using a particular data source.

source

pub fn create_emoji_modifier() -> Box<CodePointSetData>

Create a set for the Emoji_Modifier property, using compiled data.

source

pub fn create_emoji_modifier_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Emoji_Modifier property, using a particular data source.

source

pub fn create_emoji() -> Box<CodePointSetData>

Create a set for the Emoji property, using compiled data.

source

pub fn create_emoji_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Emoji property, using a particular data source.

source

pub fn create_emoji_presentation() -> Box<CodePointSetData>

Create a set for the Emoji_Presentation property, using compiled data.

source

pub fn create_emoji_presentation_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Emoji_Presentation property, using a particular data source.

source

pub fn create_extender() -> Box<CodePointSetData>

Create a set for the Extender property, using compiled data.

source

pub fn create_extender_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Extender property, using a particular data source.

source

pub fn create_extended_pictographic() -> Box<CodePointSetData>

Create a set for the Extended_Pictographic property, using compiled data.

source

pub fn create_extended_pictographic_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Extended_Pictographic property, using a particular data source.

source

pub fn create_graph() -> Box<CodePointSetData>

Create a set for the Graph property, using compiled data.

source

pub fn create_graph_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Graph property, using a particular data source.

source

pub fn create_grapheme_base() -> Box<CodePointSetData>

Create a set for the Grapheme_Base property, using compiled data.

source

pub fn create_grapheme_base_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Grapheme_Base property, using a particular data source.

source

pub fn create_grapheme_extend() -> Box<CodePointSetData>

Create a set for the Grapheme_Extend property, using compiled data.

source

pub fn create_grapheme_extend_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Grapheme_Extend property, using a particular data source.

Create a set for the Grapheme_Link property, using compiled data.

Create a set for the Grapheme_Link property, using a particular data source.

source

pub fn create_hex_digit() -> Box<CodePointSetData>

Create a set for the Hex_Digit property, using compiled data.

source

pub fn create_hex_digit_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Hex_Digit property, using a particular data source.

source

pub fn create_hyphen() -> Box<CodePointSetData>

Create a set for the Hyphen property, using compiled data.

source

pub fn create_hyphen_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Hyphen property, using a particular data source.

source

pub fn create_id_continue() -> Box<CodePointSetData>

Create a set for the Id_Continue property, using compiled data.

source

pub fn create_id_continue_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Id_Continue property, using a particular data source.

source

pub fn create_ideographic() -> Box<CodePointSetData>

Create a set for the Ideographic property, using compiled data.

source

pub fn create_ideographic_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Ideographic property, using a particular data source.

source

pub fn create_id_start() -> Box<CodePointSetData>

Create a set for the Id_Start property, using compiled data.

source

pub fn create_id_start_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Id_Start property, using a particular data source.

source

pub fn create_ids_binary_operator() -> Box<CodePointSetData>

Create a set for the Ids_Binary_Operator property, using compiled data.

source

pub fn create_ids_binary_operator_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Ids_Binary_Operator property, using a particular data source.

source

pub fn create_ids_trinary_operator() -> Box<CodePointSetData>

Create a set for the Ids_Trinary_Operator property, using compiled data.

source

pub fn create_ids_trinary_operator_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Ids_Trinary_Operator property, using a particular data source.

source

pub fn create_join_control() -> Box<CodePointSetData>

Create a set for the Join_Control property, using compiled data.

source

pub fn create_join_control_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Join_Control property, using a particular data source.

source

pub fn create_logical_order_exception() -> Box<CodePointSetData>

Create a set for the Logical_Order_Exception property, using compiled data.

source

pub fn create_logical_order_exception_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Logical_Order_Exception property, using a particular data source.

source

pub fn create_lowercase() -> Box<CodePointSetData>

Create a set for the Lowercase property, using compiled data.

source

pub fn create_lowercase_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Lowercase property, using a particular data source.

source

pub fn create_math() -> Box<CodePointSetData>

Create a set for the Math property, using compiled data.

source

pub fn create_math_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Math property, using a particular data source.

source

pub fn create_noncharacter_code_point() -> Box<CodePointSetData>

Create a set for the Noncharacter_Code_Point property, using compiled data.

source

pub fn create_noncharacter_code_point_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Noncharacter_Code_Point property, using a particular data source.

source

pub fn create_nfc_inert() -> Box<CodePointSetData>

Create a set for the Nfc_Inert property, using compiled data.

source

pub fn create_nfc_inert_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Nfc_Inert property, using a particular data source.

source

pub fn create_nfd_inert() -> Box<CodePointSetData>

Create a set for the Nfd_Inert property, using compiled data.

source

pub fn create_nfd_inert_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Nfd_Inert property, using a particular data source.

source

pub fn create_nfkc_inert() -> Box<CodePointSetData>

Create a set for the Nfkc_Inert property, using compiled data.

source

pub fn create_nfkc_inert_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Nfkc_Inert property, using a particular data source.

source

pub fn create_nfkd_inert() -> Box<CodePointSetData>

Create a set for the Nfkd_Inert property, using compiled data.

source

pub fn create_nfkd_inert_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Nfkd_Inert property, using a particular data source.

source

pub fn create_pattern_syntax() -> Box<CodePointSetData>

Create a set for the Pattern_Syntax property, using compiled data.

source

pub fn create_pattern_syntax_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Pattern_Syntax property, using a particular data source.

source

pub fn create_pattern_white_space() -> Box<CodePointSetData>

Create a set for the Pattern_White_Space property, using compiled data.

source

pub fn create_pattern_white_space_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Pattern_White_Space property, using a particular data source.

source

pub fn create_prepended_concatenation_mark() -> Box<CodePointSetData>

Create a set for the Prepended_Concatenation_Mark property, using compiled data.

source

pub fn create_prepended_concatenation_mark_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Prepended_Concatenation_Mark property, using a particular data source.

source

pub fn create_print() -> Box<CodePointSetData>

Create a set for the Print property, using compiled data.

source

pub fn create_print_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Print property, using a particular data source.

source

pub fn create_quotation_mark() -> Box<CodePointSetData>

Create a set for the Quotation_Mark property, using compiled data.

source

pub fn create_quotation_mark_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Quotation_Mark property, using a particular data source.

source

pub fn create_radical() -> Box<CodePointSetData>

Create a set for the Radical property, using compiled data.

source

pub fn create_radical_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Radical property, using a particular data source.

source

pub fn create_regional_indicator() -> Box<CodePointSetData>

Create a set for the Regional_Indicator property, using compiled data.

source

pub fn create_regional_indicator_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Regional_Indicator property, using a particular data source.

source

pub fn create_soft_dotted() -> Box<CodePointSetData>

Create a set for the Soft_Dotted property, using compiled data.

source

pub fn create_soft_dotted_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Soft_Dotted property, using a particular data source.

source

pub fn create_segment_starter() -> Box<CodePointSetData>

Create a set for the Segment_Starter property, using compiled data.

source

pub fn create_segment_starter_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Segment_Starter property, using a particular data source.

source

pub fn create_case_sensitive() -> Box<CodePointSetData>

Create a set for the Case_Sensitive property, using compiled data.

source

pub fn create_case_sensitive_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Case_Sensitive property, using a particular data source.

source

pub fn create_sentence_terminal() -> Box<CodePointSetData>

Create a set for the Sentence_Terminal property, using compiled data.

source

pub fn create_sentence_terminal_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Sentence_Terminal property, using a particular data source.

source

pub fn create_terminal_punctuation() -> Box<CodePointSetData>

Create a set for the Terminal_Punctuation property, using compiled data.

source

pub fn create_terminal_punctuation_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Terminal_Punctuation property, using a particular data source.

source

pub fn create_unified_ideograph() -> Box<CodePointSetData>

Create a set for the Unified_Ideograph property, using compiled data.

source

pub fn create_unified_ideograph_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Unified_Ideograph property, using a particular data source.

source

pub fn create_uppercase() -> Box<CodePointSetData>

Create a set for the Uppercase property, using compiled data.

source

pub fn create_uppercase_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Uppercase property, using a particular data source.

source

pub fn create_variation_selector() -> Box<CodePointSetData>

Create a set for the Variation_Selector property, using compiled data.

source

pub fn create_variation_selector_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Variation_Selector property, using a particular data source.

source

pub fn create_white_space() -> Box<CodePointSetData>

Create a set for the White_Space property, using compiled data.

source

pub fn create_white_space_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the White_Space property, using a particular data source.

source

pub fn create_xdigit() -> Box<CodePointSetData>

Create a set for the Xdigit property, using compiled data.

source

pub fn create_xdigit_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Xdigit property, using a particular data source.

source

pub fn create_xid_continue() -> Box<CodePointSetData>

Create a set for the Xid_Continue property, using compiled data.

source

pub fn create_xid_continue_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Xid_Continue property, using a particular data source.

source

pub fn create_xid_start() -> Box<CodePointSetData>

Create a set for the Xid_Start property, using compiled data.

source

pub fn create_xid_start_with_provider( provider: &DataProvider, ) -> Result<Box<CodePointSetData>, DataError>

Create a set for the Xid_Start property, using a particular data source.

source

pub fn create_for_ecma262( property_name: &DiplomatStr, ) -> Result<Box<CodePointSetData>, DataError>

source

pub fn create_for_ecma262_with_provider( provider: &DataProvider, property_name: &DiplomatStr, ) -> Result<Box<CodePointSetData>, DataError>

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> 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>,

source§

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>,

source§

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
where T: Send + Sync,