tmux-copyrat/src/textbuf/matches.rs
2021-03-22 08:57:30 +01:00

10 lines
256 B
Rust

/// 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,
}