pub enum CaptureOrExact<'a> {
Exact(&'a str),
Capture(RefCaptureVariant<'a>),
}
Expand description
Either a Capture, or an Exact match
Variants§
Trait Implementations§
Source§impl<'a> Clone for CaptureOrExact<'a>
impl<'a> Clone for CaptureOrExact<'a>
Source§fn clone(&self) -> CaptureOrExact<'a>
fn clone(&self) -> CaptureOrExact<'a>
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<'a> Debug for CaptureOrExact<'a>
impl<'a> Debug for CaptureOrExact<'a>
Source§impl<'a> From<CaptureOrExact<'a>> for MatcherToken
impl<'a> From<CaptureOrExact<'a>> for MatcherToken
Source§fn from(value: CaptureOrExact<'a>) -> Self
fn from(value: CaptureOrExact<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for CaptureOrExact<'a>
impl<'a> PartialEq for CaptureOrExact<'a>
impl<'a> Copy for CaptureOrExact<'a>
impl<'a> StructuralPartialEq for CaptureOrExact<'a>
Auto Trait Implementations§
impl<'a> Freeze for CaptureOrExact<'a>
impl<'a> RefUnwindSafe for CaptureOrExact<'a>
impl<'a> Send for CaptureOrExact<'a>
impl<'a> Sync for CaptureOrExact<'a>
impl<'a> Unpin for CaptureOrExact<'a>
impl<'a> UnwindSafe for CaptureOrExact<'a>
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