pub enum CaptureVariant {
Unnamed,
ManyUnnamed,
NumberedUnnamed {
sections: usize,
},
Named(String),
ManyNamed(String),
NumberedNamed {
sections: usize,
name: String,
},
}
Expand description
Variants that indicate how part of a string should be captured.
Variants§
Unnamed
{}
ManyUnnamed
{*}
NumberedUnnamed
{5}
Named(String)
{name} - captures a section and adds it to the map with a given name.
ManyNamed(String)
{*:name} - captures over many sections and adds it to the map with a given name.
NumberedNamed
{2:name} - captures a fixed number of sections with a given name.
Trait Implementations§
Source§impl Clone for CaptureVariant
impl Clone for CaptureVariant
Source§fn clone(&self) -> CaptureVariant
fn clone(&self) -> CaptureVariant
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 Debug for CaptureVariant
impl Debug for CaptureVariant
Source§impl<'a> From<RefCaptureVariant<'a>> for CaptureVariant
impl<'a> From<RefCaptureVariant<'a>> for CaptureVariant
Source§fn from(v: RefCaptureVariant<'a>) -> CaptureVariant
fn from(v: RefCaptureVariant<'a>) -> CaptureVariant
Converts to this type from the input type.
Source§impl PartialEq for CaptureVariant
impl PartialEq for CaptureVariant
impl StructuralPartialEq for CaptureVariant
Auto Trait Implementations§
impl Freeze for CaptureVariant
impl RefUnwindSafe for CaptureVariant
impl Send for CaptureVariant
impl Sync for CaptureVariant
impl Unpin for CaptureVariant
impl UnwindSafe for CaptureVariant
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.