refactor: Match -> textbuf/matches.rs

This commit is contained in:
graelo 2021-03-20 07:06:33 +01:00
parent f76ed75f5b
commit 7d4d9a8824
3 changed files with 14 additions and 12 deletions

10
src/textbuf/matches.rs Normal file
View file

@ -0,0 +1,10 @@
/// Represents matched text, its location on screen, the pattern that created
/// it, and the associated hint.
#[derive(Debug)]
pub struct Match<'a> {
pub x: i32,
pub y: i32,
pub pattern: &'a str,
pub text: &'a str,
pub hint: String,
}