[][src]Struct kg_lang::CharSet

pub struct CharSet { /* fields omitted */ }

Methods

impl CharSet[src]

pub fn new() -> CharSet[src]

pub fn add(&mut self, r: CharRange)[src]

pub fn add_char(&mut self, c: char)[src]

pub fn add_range(&mut self, from: char, to: char)[src]

pub fn remove(&mut self, r: CharRange)[src]

pub fn remove_char(&mut self, c: char)[src]

pub fn remove_range(&mut self, from: char, to: char)[src]

pub fn contains(&self, r: CharRange) -> bool[src]

pub fn contains_char(&self, c: char) -> bool[src]

pub fn contains_range(&self, from: char, to: char) -> bool[src]

pub fn overlaps(&self, r: CharRange) -> bool[src]

pub fn overlaps_range(&self, from: char, to: char) -> bool[src]

pub fn is_empty(&self) -> bool[src]

pub fn cardinality(&self) -> u32[src]

pub fn iter(&self) -> Iter<CharRange>[src]

pub fn ranges(&self) -> usize[src]

pub fn is_ascii_range(&self) -> bool[src]

pub fn is_byte_range(&self) -> bool[src]

Trait Implementations

impl Clone for CharSet[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<CharSet> for CharSet[src]

impl Eq for CharSet[src]

impl Display for CharSet[src]

impl Debug for CharSet[src]

Auto Trait Implementations

impl Sync for CharSet

impl Send for CharSet

impl Unpin for CharSet

impl RefUnwindSafe for CharSet

impl UnwindSafe for CharSet

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]