Skip to main content

dynamis_abi/
row.rs

1use crate::RowMoveRecord;
2use crate::constant::NO_SLOT;
3
4impl RowMoveRecord {
5    pub fn source(row: u32, source: u32) -> Self {
6        Self {
7            row,
8            source,
9            fresh: NO_SLOT,
10            _pad: 0,
11        }
12    }
13
14    pub fn fresh(row: u32, fresh: u32) -> Self {
15        Self {
16            row,
17            source: NO_SLOT,
18            fresh,
19            _pad: 0,
20        }
21    }
22
23    pub fn clear(row: u32) -> Self {
24        Self {
25            row,
26            source: NO_SLOT,
27            fresh: NO_SLOT,
28            _pad: 0,
29        }
30    }
31}