diff options
-rw-r--r-- | entities/src/ids.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/entities/src/ids.rs b/entities/src/ids.rs index 2456ef1..bdf070b 100644 --- a/entities/src/ids.rs +++ b/entities/src/ids.rs @@ -33,6 +33,12 @@ macro_rules! define_ids { write!(f, "{}", self.0) } } + + impl From<$from_t> for $name { + fn from(it: $from_t) -> $name { + $name(it) + } + } }; () => {} } |