ICU4XCodePointSetBuilder

Struct ICU4XCodePointSetBuilder 

Source
pub struct ICU4XCodePointSetBuilder(pub CodePointInversionListBuilder);

Tuple Fields§

§0: CodePointInversionListBuilder

Implementations§

Source§

impl ICU4XCodePointSetBuilder

Source

pub fn create() -> Box<Self>

Make a new set builder containing nothing

Source

pub fn build(&mut self) -> Box<ICU4XCodePointSetData>

Build this into a set

This object is repopulated with an empty builder

Source

pub fn complement(&mut self)

Complements this set

(Elements in this set are removed and vice versa)

Source

pub fn is_empty(&self) -> bool

Returns whether this set is empty

Source

pub fn add_char(&mut self, ch: DiplomatChar)

Add a single character to the set

Source

pub fn add_u32(&mut self, ch: u32)

Deprecated, use add_char.

Source

pub fn add_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)

Add an inclusive range of characters to the set

Source

pub fn add_inclusive_range_u32(&mut self, start: u32, end: u32)

Deprecated, use add_inclusive_range.

Source

pub fn add_set(&mut self, data: &ICU4XCodePointSetData)

Add all elements that belong to the provided set to the set

Source

pub fn remove_char(&mut self, ch: DiplomatChar)

Remove a single character to the set

Source

pub fn remove_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)

Remove an inclusive range of characters from the set

Source

pub fn remove_set(&mut self, data: &ICU4XCodePointSetData)

Remove all elements that belong to the provided set from the set

Source

pub fn retain_char(&mut self, ch: DiplomatChar)

Removes all elements from the set except a single character

Source

pub fn retain_inclusive_range(&mut self, start: DiplomatChar, end: DiplomatChar)

Removes all elements from the set except an inclusive range of characters f

Source

pub fn retain_set(&mut self, data: &ICU4XCodePointSetData)

Removes all elements from the set except all elements in the provided set

Source

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)

Source

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)

Source

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§

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

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