pub trait ApiWithCtx: Api {
type Ctx;
type ApiInstance: Copy + Clone;
// Required method
fn wrap(self, ctx: *const Self::Ctx) -> Self::ApiInstance;
}Required Associated Types§
Required Methods§
fn wrap(self, ctx: *const Self::Ctx) -> Self::ApiInstance
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.