summaryrefslogtreecommitdiffstats
path: root/vendor/windows-metadata/src/reader/row.rs
blob: 727edb201e1b32d6a61a0f9bdda63ff69392e50b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Copy, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
pub struct Row {
    pub row: u32,
    pub table: u16,
    pub file: u16,
}

impl Row {
    pub fn new(row: usize, table: usize, file: usize) -> Self {
        Self { row: row as _, table: table as _, file: file as _ }
    }
    pub fn next(&self) -> Self {
        Self { row: self.row + 1, table: self.table, file: self.file }
    }
}