1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use specs::{DispatcherBuilder, World};

pub trait SpecsBundle<'a, 'b> {
    type Error;

    fn build(
        self,
        &mut World,
        DispatcherBuilder<'a, 'b>,
    ) -> Result<DispatcherBuilder<'a, 'b>, Self::Error>;
}