Struct icu_capi::collections_sets::ffi::CodePointSetBuilder
source · pub struct CodePointSetBuilder(pub CodePointInversionListBuilder);
Tuple Fields§
§0: CodePointInversionListBuilder
Implementations§
source§impl CodePointSetBuilder
impl CodePointSetBuilder
sourcepub fn build(&mut self) -> Box<CodePointSetData>
pub fn build(&mut self) -> Box<CodePointSetData>
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_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_set(&mut self, data: &CodePointSetData)
pub fn add_set(&mut self, data: &CodePointSetData)
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: &CodePointSetData)
pub fn remove_set(&mut self, data: &CodePointSetData)
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: &CodePointSetData)
pub fn retain_set(&mut self, data: &CodePointSetData)
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: &CodePointSetData)
pub fn complement_set(&mut self, data: &CodePointSetData)
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 CodePointSetBuilder
impl RefUnwindSafe for CodePointSetBuilder
impl Send for CodePointSetBuilder
impl Sync for CodePointSetBuilder
impl Unpin for CodePointSetBuilder
impl UnwindSafe for CodePointSetBuilder
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> 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