pub struct StructuralMatch {
pub start_byte: usize,
pub end_byte: usize,
pub start_line: usize,
pub start_col: usize,
pub text: String,
pub captures: Vec<(String, String)>,
}Expand description
A single structural match result.
Fields§
§start_byte: usizeByte offset of the match start in the source.
end_byte: usizeByte offset of the match end in the source.
start_line: usizeZero-based start line.
start_col: usizeZero-based start column.
text: StringThe matched text.
captures: Vec<(String, String)>Captured metavariables: (name, text).
Auto Trait Implementations§
impl Freeze for StructuralMatch
impl RefUnwindSafe for StructuralMatch
impl Send for StructuralMatch
impl Sync for StructuralMatch
impl Unpin for StructuralMatch
impl UnsafeUnpin for StructuralMatch
impl UnwindSafe for StructuralMatch
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more