Skip to main content

HostModule

Trait HostModule 

Source
pub trait HostModule {
    const MODULE: &'static str;
    const DECL: &'static str;
}
Expand description

A Rust type exposed to Teal as a userdata module via #[host_module].

Required Associated Constants§

Source

const MODULE: &'static str

Module name used in require("...").

Source

const DECL: &'static str

Full .d.tl text for the module.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§