bundle_bundle 0.1.1

bundle bundles in a chain
Documentation
1
2
3
4
5
6
7
8
9
use bevy::prelude::*;

pub trait BundleBundleExt: Bundle + Sized {
    fn bundle<B: Bundle>(self, b: B) -> (Self, B) {
        (self, b)
    }
}

impl<B: Bundle> BundleBundleExt for B {}