Module

Trait Module 

pub trait Module: Sized + 'static {
    // Provided methods
    fn init(self, _resources: &mut Resources) { ... }
    fn install(self, resources: &mut Resources) -> bool { ... }
}

Provided Methods§

fn init(self, _resources: &mut Resources)

fn install(self, resources: &mut Resources) -> bool

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§

§

impl<F> Module for F
where F: FnOnce(&mut Resources) + 'static,