Skip to main content

import

Macro import 

Source
import!() { /* proc-macro */ }
Expand description

Inter-mod communication proc-macros. Another mod’s exports, callable here: import! { from "mod_id" { pub fn name(a: A) -> R; pub struct T { .. } } } — each fn calls mod_id:name on the bus and answers Option<R> (None: the mod isn’t loaded, or it failed); each type gets the schema its values cross with.