pub struct AstMatch {
pub file_path: PathBuf,
pub line_start: usize,
pub line_end: usize,
pub column_start: usize,
pub column_end: usize,
pub matched_text: String,
}Expand description
Represents a match found by ast-grep
Fields§
§file_path: PathBuf§line_start: usize§line_end: usize§column_start: usize§column_end: usize§matched_text: StringAuto Trait Implementations§
impl Freeze for AstMatch
impl RefUnwindSafe for AstMatch
impl Send for AstMatch
impl Sync for AstMatch
impl Unpin for AstMatch
impl UnsafeUnpin for AstMatch
impl UnwindSafe for AstMatch
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> 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