Skip to main content

muster/domain/value/
pane_id.rs

1use nutype::nutype;
2
3/// Stable identifier for a managed process and its terminal pane.
4#[nutype(derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Display))]
5pub struct PaneId(u64);
6
7#[cfg(test)]
8mod tests {
9    use super::*;
10
11    #[test]
12    fn distinct_ids_are_not_equal() {
13        assert_ne!(PaneId::new(1), PaneId::new(2));
14    }
15}