pub struct CharRangeSet(/* private fields */);Implementations§
Source§impl CharRangeSet
impl CharRangeSet
pub fn new() -> Self
pub fn add_range<R: Into<CharRange>>(&mut self, range: R)
pub fn contains(&self, value: char) -> bool
pub fn contains_any<I: IntoIterator<Item = char>>(&self, values: I) -> bool
pub fn contains_all<I: IntoIterator<Item = char>>(&self, values: I) -> bool
pub fn with_range<R: Into<CharRange>>(self, range: R) -> Self
pub fn with_lowercase(self) -> Self
pub fn with_uppercase(self) -> Self
pub fn with_digits(self) -> Self
pub fn with_all(self) -> Self
pub fn with_alpha(self) -> Self
pub fn with_alphanumeric(self) -> Self
pub fn with_chars<I: IntoIterator<Item = char>>(self, chars: I) -> Self
Trait Implementations§
Source§impl Clone for CharRangeSet
impl Clone for CharRangeSet
Source§fn clone(&self) -> CharRangeSet
fn clone(&self) -> CharRangeSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CharRangeSet
impl Debug for CharRangeSet
Source§impl PartialEq for CharRangeSet
impl PartialEq for CharRangeSet
impl Eq for CharRangeSet
impl StructuralPartialEq for CharRangeSet
Auto Trait Implementations§
impl Freeze for CharRangeSet
impl RefUnwindSafe for CharRangeSet
impl Send for CharRangeSet
impl Sync for CharRangeSet
impl Unpin for CharRangeSet
impl UnwindSafe for CharRangeSet
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