Struct icu_capi::collections_sets::ffi::ICU4XCodePointSetBuilder
source · pub struct ICU4XCodePointSetBuilder(pub CodePointInversionListBuilder);
Tuple Fields§
§0: CodePointInversionListBuilder
Implementations§
source§impl ICU4XCodePointSetBuilder
impl ICU4XCodePointSetBuilder
sourcepub fn build(&mut self) -> Box<ICU4XCodePointSetData>
pub fn build(&mut self) -> Box<ICU4XCodePointSetData>
Build this into a set
This object is repopulated with an empty builder
sourcepub fn complement(&mut self)
pub fn complement(&mut self)
Complements this set
(Elements in this set are removed and vice versa)
sourcepub fn add_char(&mut self, ch: DiplomatChar)
pub fn add_char(&mut self, ch: DiplomatChar)
Add a single character to the set
sourcepub fn add_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
pub fn add_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
Add an inclusive range of characters to the set
sourcepub fn add_inclusive_range_u32(&mut self, start: u32, end: u32)
pub fn add_inclusive_range_u32(&mut self, start: u32, end: u32)
Deprecated, use add_inclusive_range
.
sourcepub fn add_set(&mut self, data: &ICU4XCodePointSetData)
pub fn add_set(&mut self, data: &ICU4XCodePointSetData)
Add all elements that belong to the provided set to the set
sourcepub fn remove_char(&mut self, ch: DiplomatChar)
pub fn remove_char(&mut self, ch: DiplomatChar)
Remove a single character to the set
sourcepub fn remove_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
pub fn remove_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
Remove an inclusive range of characters from the set
sourcepub fn remove_set(&mut self, data: &ICU4XCodePointSetData)
pub fn remove_set(&mut self, data: &ICU4XCodePointSetData)
Remove all elements that belong to the provided set from the set
sourcepub fn retain_char(&mut self, ch: DiplomatChar)
pub fn retain_char(&mut self, ch: DiplomatChar)
Removes all elements from the set except a single character
sourcepub fn retain_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
pub fn retain_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)
Removes all elements from the set except an inclusive range of characters f
sourcepub fn retain_set(&mut self, data: &ICU4XCodePointSetData)
pub fn retain_set(&mut self, data: &ICU4XCodePointSetData)
Removes all elements from the set except all elements in the provided set
sourcepub fn complement_char(&mut self, ch: DiplomatChar)
pub fn complement_char(&mut self, ch: DiplomatChar)
Complement a single character to the set
(Characters which are in this set are removed and vice versa)
sourcepub fn complement_inclusive_range(
&mut self,
start: DiplomatChar,
end: DiplomatChar,
)
pub fn complement_inclusive_range( &mut self, start: DiplomatChar, end: DiplomatChar, )
Complement an inclusive range of characters from the set
(Characters which are in this set are removed and vice versa)
sourcepub fn complement_set(&mut self, data: &ICU4XCodePointSetData)
pub fn complement_set(&mut self, data: &ICU4XCodePointSetData)
Complement all elements that belong to the provided set from the set
(Characters which are in this set are removed and vice versa)
Auto Trait Implementations§
impl Freeze for ICU4XCodePointSetBuilder
impl RefUnwindSafe for ICU4XCodePointSetBuilder
impl Send for ICU4XCodePointSetBuilder
impl Sync for ICU4XCodePointSetBuilder
impl Unpin for ICU4XCodePointSetBuilder
impl UnwindSafe for ICU4XCodePointSetBuilder
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
source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
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>
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>
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