From c4ee47647a5bf1a06ae88ebb9410117c927868ee Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 12 Oct 2026 01:31:00 -0400 Subject: Major refactor, generate relation traits with macros --- crates/elfmind/src/noun.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 crates/elfmind/src/noun.rs (limited to 'crates/elfmind/src/noun.rs') diff --git a/crates/elfmind/src/noun.rs b/crates/elfmind/src/noun.rs new file mode 100644 index 0000000..b09dff3 --- /dev/null +++ b/crates/elfmind/src/noun.rs @@ -0,0 +1,19 @@ +pub mod character; pub use character::*; +pub mod item; pub use item::*; +pub mod time; pub use time::*; + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Noun { + Item(Item), + CharacterUnmasked(CharacterUnmasked), + Time(Time), +} +impl std::fmt::Display for Noun { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Self::Item(x) => write!(f, "{:?}", x), + Self::CharacterUnmasked(x) => write!(f, "{:?}", x), + Self::Time(x) => write!(f, "{:?}", x), + } + } +} -- cgit v1.3.1