pub enum LabelPattern {
Name {
span: Span,
name: String,
},
Range {
span: Span,
prefix: String,
count: u32,
},
}Variants§
Trait Implementations§
Source§impl Clone for LabelPattern
impl Clone for LabelPattern
Source§fn clone(&self) -> LabelPattern
fn clone(&self) -> LabelPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LabelPattern
impl Debug for LabelPattern
Source§impl PartialEq for LabelPattern
impl PartialEq for LabelPattern
Source§fn eq(&self, other: &LabelPattern) -> bool
fn eq(&self, other: &LabelPattern) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LabelPattern
Auto Trait Implementations§
impl Freeze for LabelPattern
impl RefUnwindSafe for LabelPattern
impl Send for LabelPattern
impl Sync for LabelPattern
impl Unpin for LabelPattern
impl UnsafeUnpin for LabelPattern
impl UnwindSafe for LabelPattern
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