pub struct NamedMatch {
pub name: Option<String>,
pub value: String,
pub span: MatchSpan,
}Expand description
A matched string value paired with an optional name and span.
Fields§
§name: Option<String>§value: String§span: MatchSpanTrait Implementations§
Source§impl Clone for NamedMatch
impl Clone for NamedMatch
Source§fn clone(&self) -> NamedMatch
fn clone(&self) -> NamedMatch
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 NamedMatch
impl Debug for NamedMatch
Source§impl Default for NamedMatch
impl Default for NamedMatch
Source§fn default() -> NamedMatch
fn default() -> NamedMatch
Returns the “default value” for a type. Read more
Source§impl PartialEq for NamedMatch
impl PartialEq for NamedMatch
Source§fn eq(&self, other: &NamedMatch) -> bool
fn eq(&self, other: &NamedMatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NamedMatch
impl StructuralPartialEq for NamedMatch
Auto Trait Implementations§
impl Freeze for NamedMatch
impl RefUnwindSafe for NamedMatch
impl Send for NamedMatch
impl Sync for NamedMatch
impl Unpin for NamedMatch
impl UnsafeUnpin for NamedMatch
impl UnwindSafe for NamedMatch
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