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