pub struct Match {
pub start_line: usize,
pub start_col: usize,
pub end_line: usize,
pub end_col: usize,
}Expand description
One literal match, inclusive on both ends, in absolute buffer coordinates.
No #[non_exhaustive] (#844). 12 out-of-crate literal sites, and a consumer receives one
from search and hands it back to match_spans rather than building it — round-trip, not
construction, so the attribute would restrict a use that does not exist.
Fields§
§start_line: usize§start_col: usize§end_line: usize§end_col: usizeTrait Implementations§
impl Copy for Match
impl Eq for Match
impl StructuralPartialEq for Match
Auto Trait Implementations§
impl Freeze for Match
impl RefUnwindSafe for Match
impl Send for Match
impl Sync for Match
impl Unpin for Match
impl UnsafeUnpin for Match
impl UnwindSafe for Match
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