pub struct CharRange(/* private fields */);Implementations§
Source§impl CharRange
impl CharRange
pub fn new(start: char, end: char) -> Result<Self, Box<dyn Error>>
pub fn len(&self) -> u32
pub fn contains(&self, value: char) -> bool
pub fn try_merge(&self, other: &Self) -> Result<Self, Box<dyn Error>>
pub fn char(c: char) -> Self
pub fn lowercase() -> Self
pub fn uppercase() -> Self
pub fn digits() -> Self
pub fn all() -> Self
Trait Implementations§
Source§impl Into<DiscreteRange<u32>> for CharRange
impl Into<DiscreteRange<u32>> for CharRange
Source§fn into(self) -> DiscreteRange<u32>
fn into(self) -> DiscreteRange<u32>
Converts this type into the (usually inferred) input type.
impl Copy for CharRange
impl Eq for CharRange
impl StructuralPartialEq for CharRange
Auto Trait Implementations§
impl Freeze for CharRange
impl RefUnwindSafe for CharRange
impl Send for CharRange
impl Sync for CharRange
impl Unpin for CharRange
impl UnwindSafe for CharRange
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