Skip to main content

vantage_table/
conditions.rs

1/// Handle for temporary conditions that can be removed
2#[derive(Debug, Clone, Copy, PartialEq, Eq)]
3pub struct ConditionHandle(pub(crate) i64);
4
5impl ConditionHandle {
6    pub(crate) fn new(id: i64) -> Self {
7        Self(id)
8    }
9
10    pub(crate) fn id(&self) -> i64 {
11        self.0
12    }
13}