mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'lemu/src/debug/printable.rs')
| -rw-r--r-- | lemu/src/debug/printable.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lemu/src/debug/printable.rs b/lemu/src/debug/printable.rs new file mode 100644 index 0000000..243da57 --- /dev/null +++ b/lemu/src/debug/printable.rs @@ -0,0 +1,7 @@ +use std::fmt::{Debug, Result, Write}; + +use super::info::DebugInfo; + +pub trait Printable: Debug { + fn print(&self, info: &DebugInfo<'_>, f: &mut impl Write) -> Result; +} |