Skip to main content

IntoModule

Trait IntoModule 

Source
pub trait IntoModule {
    // Required method
    fn register(self, module: &mut Module);
}
Expand description

What Builder::module takes: a type with #[skathi::module], or a closure that fills the Module (|m: &mut Module| …).

Required Methods§

Source

fn register(self, module: &mut Module)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F: FnOnce(&mut Module)> IntoModule for F