diff --git a/xous-rs/src/definitions.rs b/xous-rs/src/definitions.rs index d7ce1f3a4..b2b7b9b42 100644 --- a/xous-rs/src/definitions.rs +++ b/xous-rs/src/definitions.rs @@ -491,6 +491,17 @@ impl From for MemoryType { } } +impl core::fmt::Display for MemoryType { + fn fmt(&self, fmt: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { + match *self { + MemoryType::Default => write!(fmt, "Default"), + MemoryType::Heap => write!(fmt, "Heap"), + MemoryType::Stack => write!(fmt, "Stack"), + MemoryType::Messages => write!(fmt, "Messages"), + } + } +} + #[repr(C)] #[derive(Debug, PartialEq)] pub enum Result {