vmi_core/core/
view.rs

1
2
3
4
5
6
7
8
9
/// A physical memory view identifier.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct View(pub u16);

impl std::fmt::Display for View {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> ::std::fmt::Result {
        write!(f, "{}", self.0)
    }
}