tmux-copyrat/src/textbuf/matches.rs

11 lines
256 B
Rust
Raw Normal View History

2021-03-20 07:06:33 +01:00
/// 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,
}