Implement Dynamic::From<Instant>
This commit is contained in:
parent
03dce86328
commit
e0483f2a50
@ -1256,3 +1256,9 @@ impl From<Box<FnPtr>> for Dynamic {
|
|||||||
Self(Union::FnPtr(value))
|
Self(Union::FnPtr(value))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
impl From<Instant> for Dynamic {
|
||||||
|
#[inline(always)]
|
||||||
|
fn from(value: Instant) -> Self {
|
||||||
|
Self(Union::Variant(Box::new(Box::new(value))))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user