diff options
Diffstat (limited to 'engine/src/util.rs')
-rw-r--r-- | engine/src/util.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/engine/src/util.rs b/engine/src/util.rs index 409b98f..532bdee 100644 --- a/engine/src/util.rs +++ b/engine/src/util.rs @@ -77,6 +77,18 @@ macro_rules! builder { } } } + + impl From<$name> for $builder_name + { + fn from(built: $name) -> Self + { + Self { + $( + $field: built.$field, + )* + } + } + } }; } |