[][src]Trait swim_core::reify::Reify

pub trait Reify<'a, T: ?Sized = Self> {
    unsafe fn deify(object: &mut T);
unsafe fn reify(base: &'a Reified<T>) -> &'a T; }

A type with a Reified field as its first struct member, from which a polymorphic trait object can be constructed from a thin pointer to the base address of the object.

Safety

Can only reify a type that has a Reified field as its first struct member.

Required methods

unsafe fn deify(object: &mut T)

Initialized the Reified structure at the base address of the object reference to the vtable of the object instance.

unsafe fn reify(base: &'a Reified<T>) -> &'a T

Returns a polymorphic trait object for the concrete type of the object whose base address equals the address of the passed-in Reified reference.

Loading content...

Implementors

Loading content...