use std::fmt;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[non_exhaustive]
pub enum MemoryClass {
Pinned,
Pageable,
}
impl fmt::Display for MemoryClass {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str(match self {
MemoryClass::Pinned => "pinned",
MemoryClass::Pageable => "pageable",
})
}
}