vmi_core/core/
view.rs

1/// A physical memory view identifier.
2#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
3pub struct View(pub u16);
4
5impl std::fmt::Display for View {
6    fn fmt(&self, f: &mut std::fmt::Formatter) -> ::std::fmt::Result {
7        write!(f, "{}", self.0)
8    }
9}