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