diff --git a/src/raw.rs b/src/raw.rs index b8d04ee19..a0607bc5b 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -216,6 +216,12 @@ impl RawValue { } } +impl From> for Box { + fn from(val: Box) -> Self { + unsafe { mem::transmute::, Box>(val) } + } +} + /// Convert a `T` into a boxed `RawValue`. /// /// # Example