broot 1.56.0

File browser and launcher
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// result of a full text search
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum ContentSearchResult {
    /// the needle has been found at the given pos
    Found { pos: usize },

    /// the needle hasn't been found
    NotFound, // no match

    /// the file wasn't searched because it's binary or too big
    NotSuitable,
}

impl ContentSearchResult {
    pub fn is_found(self) -> bool {
        matches!(self, Self::Found { .. })
    }
}