Skip to main content

JetEnvironment

Trait JetEnvironment 

Source
pub trait JetEnvironment {
    type Jet: Jet;
    type CJetEnvironment;

    // Required methods
    fn c_jet_env(&self) -> &Self::CJetEnvironment;
    fn c_jet_ptr(
        jet: &Self::Jet,
    ) -> fn(&mut CFrameItem, CFrameItem, &Self::CJetEnvironment) -> bool;
}
Expand description

An environment for jets to read.

Required Associated Types§

Source

type Jet: Jet

The type of jet that this environment supports.

Source

type CJetEnvironment

CJetEnvironment to interact with C FFI.

Required Methods§

Source

fn c_jet_env(&self) -> &Self::CJetEnvironment

Obtains a C FFI compatible environment for the jet.

Source

fn c_jet_ptr( jet: &Self::Jet, ) -> fn(&mut CFrameItem, CFrameItem, &Self::CJetEnvironment) -> bool

Obtain the FFI C pointer for the jet.

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§