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 {}