Function maskerad_memory_allocators::utils::get_type_description [] [src]

pub unsafe fn get_type_description<T>() -> *const TypeDescription

Returns a constant raw pointer to a TypeDescription structure, from a given T.

implementation details

This function create a raw pointer to the T type, and transmute it to a TraitObject structure.

The virtual table (*mut ()) of this pointer is then cast to a constant raw pointer to a TypeDescription structure, and returned.