pub struct CharSet { /* private fields */ }Expand description
A set of code points stored as normalised inclusive ranges.
Implementations§
Source§impl CharSet
impl CharSet
Sourcepub fn from_ranges<I: IntoIterator<Item = (u32, u32)>>(it: I) -> Self
pub fn from_ranges<I: IntoIterator<Item = (u32, u32)>>(it: I) -> Self
Normalise arbitrary ranges (any order, overlapping, touching).
Sourcepub fn difference(&self, o: &CharSet) -> CharSet
pub fn difference(&self, o: &CharSet) -> CharSet
Members of self that are not in o.
Trait Implementations§
impl Eq for CharSet
Source§impl Ord for CharSet
impl Ord for CharSet
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for CharSet
impl PartialOrd for CharSet
impl StructuralPartialEq for CharSet
Auto Trait Implementations§
impl Forget for CharSet
impl Freeze for CharSet
impl RefUnwindSafe for CharSet
impl Send for CharSet
impl Sync for CharSet
impl Unpin for CharSet
impl UnsafeUnpin for CharSet
impl UnwindSafe for CharSet
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
Mutably borrows from an owned value. Read more