pub struct NamedPattern {
pub pattern: Pattern,
pub name: Option<String>,
pub index: usize,
}Expand description
A pattern with an optional name.
Fields§
§pattern: PatternThe pattern.
name: Option<String>Optional name for the pattern.
index: usizeIndex in the pattern set.
Trait Implementations§
Source§impl Clone for NamedPattern
impl Clone for NamedPattern
Source§fn clone(&self) -> NamedPattern
fn clone(&self) -> NamedPattern
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 NamedPattern
impl RefUnwindSafe for NamedPattern
impl Send for NamedPattern
impl Sync for NamedPattern
impl Unpin for NamedPattern
impl UnwindSafe for NamedPattern
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