pub struct ICU4XCodePointSetBuilder(pub CodePointInversionListBuilder);Tuple Fields§
§0: CodePointInversionListBuilderImplementations§
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>
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes