Type Alias BoxValue

Source
pub type BoxValue<V> = Value<Box<[MaybeUninit<u8>]>, V>;

Aliased Type§

pub struct BoxValue<V> { /* private fields */ }

Implementations§

Source§

impl<V: HasDrop> BoxValue<V>

Source

pub fn new<T: Any + DropBytes>(value: T) -> Value<Box<[MaybeUninit<u8>]>, V>
where V: VTable<T>,

Source§

impl<V: ?Sized + HasDrop> BoxValue<V>

Source

pub fn upcast<U: HasDrop + From<V>>(self) -> BoxValue<U>
where V: Clone,

Source

pub fn into_raw_parts(self) -> (Box<[MaybeUninit<u8>]>, TypeId, usize, Ptr<V>)

Convert this value into its destructured parts.

The caller must insure that the memory allocated by the returned bytes is freed.