blob: f9618cde49e153470e992612d7a951b8c7ccbdac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub(crate) struct LineMatch {
index: usize,
hash: bool,
content: bool,
}
impl LineMatch {
pub(crate) const fn new(index: usize, hash: bool, content: bool) -> Self {
Self { index, hash, content }
}
pub(crate) const fn index(&self) -> usize {
self.index
}
pub(crate) const fn hash(&self) -> bool {
self.hash
}
pub(crate) const fn content(&self) -> bool {
self.content
}
}
|