pub trait UserData: Any {
    fn dtable_gcraw(&self) -> GcRaw<DispatchTable>;
    fn as_any(&self) -> &dyn Any;

    unsafe fn dtable(&self) -> &DispatchTable { ... }
}

Required Methods

Returns a GC reference to the user data’s dispatch table.

Converts a reference to UserData to Any.

Provided Methods

Returns the user data’s dispatch table.

Safety

This is basically sugar for dtable_gcraw().get(), so all the footguns of GcRaw::get apply.

Implementors