Trait cglue::trait_group::CGlueBaseVtbl
source · pub unsafe trait CGlueBaseVtbl: Sized {
type OpaqueVtbl: OpaqueVtblBounds;
type Context: ContextBounds;
type RetTmp: Sized + Default;
// Provided method
fn as_opaque(&self) -> &Self::OpaqueVtbl { ... }
}
Expand description
Trait for CGlue vtables.
Safety
This trait is meant to be implemented by the code generator. If implementing manually, make
sure that the OpaqueVtbl
is the exact same type, with the only difference being this
types.
Required Associated Types§
type OpaqueVtbl: OpaqueVtblBounds
type Context: ContextBounds
type RetTmp: Sized + Default
Provided Methods§
sourcefn as_opaque(&self) -> &Self::OpaqueVtbl
fn as_opaque(&self) -> &Self::OpaqueVtbl
Get the opaque vtable for the type.
Object Safety§
This trait is not object safe.