pub struct Match<'a, 'b> {
pub start: usize,
pub end: usize,
pub name: Option<&'a str>,
pub value: &'b str,
}
Fields§
§start: usize
§end: usize
§name: Option<&'a str>
§value: &'b str
Implementations§
Source§impl<'a, 'b> Match<'a, 'b>
impl<'a, 'b> Match<'a, 'b>
pub fn new( start: usize, end: usize, name: Option<&'a str>, value: &'b str, ) -> Self
pub fn start(&self) -> usize
pub fn end(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn range(&self) -> Range<usize>
pub fn as_str(&self) -> &'b str
Trait Implementations§
impl<'a, 'b> StructuralPartialEq for Match<'a, 'b>
Auto Trait Implementations§
impl<'a, 'b> Freeze for Match<'a, 'b>
impl<'a, 'b> RefUnwindSafe for Match<'a, 'b>
impl<'a, 'b> Send for Match<'a, 'b>
impl<'a, 'b> Sync for Match<'a, 'b>
impl<'a, 'b> Unpin for Match<'a, 'b>
impl<'a, 'b> UnwindSafe for Match<'a, 'b>
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