pub enum SetPatternObject {
Char(char),
Escaped(char),
Range(char, char),
Class(Class),
}
Expand description
An entry of a set.
Variants§
Char(char)
A character to match literally (eg. a
).
Escaped(char)
An escaped character to match literally (eg. %%
, %]
).
Range(char, char)
A range of characters (eg. a-z
). Matches if any character in the range matches.
Class(Class)
A character class (eg. %w
, %L
).
Trait Implementations§
Source§impl Clone for SetPatternObject
impl Clone for SetPatternObject
Source§fn clone(&self) -> SetPatternObject
fn clone(&self) -> SetPatternObject
Returns a copy 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 SetPatternObject
impl Debug for SetPatternObject
Source§impl PartialEq for SetPatternObject
impl PartialEq for SetPatternObject
impl Eq for SetPatternObject
impl StructuralPartialEq for SetPatternObject
Auto Trait Implementations§
impl Freeze for SetPatternObject
impl RefUnwindSafe for SetPatternObject
impl Send for SetPatternObject
impl Sync for SetPatternObject
impl Unpin for SetPatternObject
impl UnwindSafe for SetPatternObject
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