pub struct PatternDef {
pub id: usize,
pub kind: PatternKind,
pub case_insensitive: bool,
}Expand description
A single pattern to match against.
Fields§
§id: usizeUser-assigned ID for this pattern (returned in match results).
kind: PatternKindThe pattern content.
case_insensitive: boolWhether matching is case-insensitive.
Trait Implementations§
Source§impl Clone for PatternDef
impl Clone for PatternDef
Source§fn clone(&self) -> PatternDef
fn clone(&self) -> PatternDef
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 moreAuto Trait Implementations§
impl Freeze for PatternDef
impl RefUnwindSafe for PatternDef
impl Send for PatternDef
impl Sync for PatternDef
impl Unpin for PatternDef
impl UnsafeUnpin for PatternDef
impl UnwindSafe for PatternDef
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