pub struct Type<T> { /* private fields */ }
Expand description
A type. This is used to represent user-defined Rust types in the VM (but not their instances).
Trait Implementations
sourceimpl<T> UserData for Type<T>where
T: Any,
impl<T> UserData for Type<T>where
T: Any,
sourcefn dtable_gcraw(&self) -> GcRaw<DispatchTable>
fn dtable_gcraw(&self) -> GcRaw<DispatchTable>
Returns a GC reference to the user data’s dispatch table.
sourceunsafe fn dtable(&self) -> &DispatchTable
unsafe fn dtable(&self) -> &DispatchTable
Returns the user data’s dispatch table. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for Type<T>
impl<T> !Send for Type<T>
impl<T> !Sync for Type<T>
impl<T> Unpin for Type<T>where
T: Unpin,
impl<T> !UnwindSafe for Type<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more