diff options
author | D. Scott Boggs <scott@tams.tech> | 2023-06-04 11:46:03 -0400 |
---|---|---|
committer | D. Scott Boggs <scott@tams.tech> | 2023-09-01 07:50:40 -0400 |
commit | 8639c71689951ec0af422f3bfb82c607b59b1353 (patch) | |
tree | 6de021be758c90fe765c8727ee8b99c2e6dea49a | |
parent | 4843b196eaff54b84c1ede9620e8420e7ff657ae (diff) |
Add implementation for From to ids
-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) + } + } }; () => {} } |