Trait Mod

Source
pub trait Mod<'a>:
    Clone
    + Sealed
    + 'a {
    type Ctx<'b>: Ctx<'b>
       where Self: 'b;

    // Required methods
    fn ctx<'b: 'a>(&'b self) -> Self::Ctx<'b>;
    fn create_mod<'b, 'c, 'd>(a: &'b CStr, ctx: &'c Self::Ctx<'d>) -> Self
       where 'a: 'b + 'c + 'd;
}

Required Associated Types§

Source

type Ctx<'b>: Ctx<'b> where Self: 'b

Required Methods§

Source

fn ctx<'b: 'a>(&'b self) -> Self::Ctx<'b>

Source

fn create_mod<'b, 'c, 'd>(a: &'b CStr, ctx: &'c Self::Ctx<'d>) -> Self
where 'a: 'b + 'c + 'd,

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.

Implementors§