diff --git a/src/any.rs b/src/any.rs index a1e532aa..12836aff 100644 --- a/src/any.rs +++ b/src/any.rs @@ -1256,3 +1256,9 @@ impl From> for Dynamic { Self(Union::FnPtr(value)) } } +impl From for Dynamic { + #[inline(always)] + fn from(value: Instant) -> Self { + Self(Union::Variant(Box::new(Box::new(value)))) + } +}