Type Alias dync::BoxValue

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

Aliased Type§

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.