diff options
author | D. Scott Boggs <scott@tams.tech> | 2023-06-04 11:46:03 -0400 |
---|---|---|
committer | D. Scott Boggs <scott@tams.tech> | 2024-04-08 09:29:49 -0400 |
commit | e3ae5db87dd8578dc28e7bf7ab7dc0b18de9ceeb (patch) | |
tree | 4bb7850acf4dbb5860c1d49f3f9e0a42ef12af6e | |
parent | 88c4a9947ebe1725ff2f20d2b25610d7c0128bc5 (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) + } + } }; () => {} } |