Expand description
Trait used to tight pack storage(s).
Tight packs storages.
Only non packed storages can be tight packed at the moment.
use shipyard::{TightPack, ViewMut, World};
let world = World::new();
world
.borrow::<(ViewMut<usize>, ViewMut<u32>)>()
.try_tight_pack()
.unwrap();
Tight packs storages.
Only non packed storages can be tight packed at the moment.
Unwraps errors.
use shipyard::{TightPack, ViewMut, World};
let world = World::new();
world
.borrow::<(ViewMut<usize>, ViewMut<u32>)>()
.tight_pack();
impl<A: 'static, B: 'static, C: 'static, D: 'static> TightPack for (&mut ViewMut<'_, A>, &mut ViewMut<'_, B>, &mut ViewMut<'_, C>, &mut ViewMut<'_, D>)
impl<A: 'static, B: 'static, C: 'static, D: 'static> TightPack for (ViewMut<'_, A>, ViewMut<'_, B>, ViewMut<'_, C>, ViewMut<'_, D>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static> TightPack for (&mut ViewMut<'_, A>, &mut ViewMut<'_, B>, &mut ViewMut<'_, C>, &mut ViewMut<'_, D>, &mut ViewMut<'_, E>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static> TightPack for (ViewMut<'_, A>, ViewMut<'_, B>, ViewMut<'_, C>, ViewMut<'_, D>, ViewMut<'_, E>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static> TightPack for (&mut ViewMut<'_, A>, &mut ViewMut<'_, B>, &mut ViewMut<'_, C>, &mut ViewMut<'_, D>, &mut ViewMut<'_, E>, &mut ViewMut<'_, F>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static> TightPack for (ViewMut<'_, A>, ViewMut<'_, B>, ViewMut<'_, C>, ViewMut<'_, D>, ViewMut<'_, E>, ViewMut<'_, F>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static> TightPack for (&mut ViewMut<'_, A>, &mut ViewMut<'_, B>, &mut ViewMut<'_, C>, &mut ViewMut<'_, D>, &mut ViewMut<'_, E>, &mut ViewMut<'_, F>, &mut ViewMut<'_, G>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static> TightPack for (ViewMut<'_, A>, ViewMut<'_, B>, ViewMut<'_, C>, ViewMut<'_, D>, ViewMut<'_, E>, ViewMut<'_, F>, ViewMut<'_, G>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static> TightPack for (&mut ViewMut<'_, A>, &mut ViewMut<'_, B>, &mut ViewMut<'_, C>, &mut ViewMut<'_, D>, &mut ViewMut<'_, E>, &mut ViewMut<'_, F>, &mut ViewMut<'_, G>, &mut ViewMut<'_, H>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static> TightPack for (ViewMut<'_, A>, ViewMut<'_, B>, ViewMut<'_, C>, ViewMut<'_, D>, ViewMut<'_, E>, ViewMut<'_, F>, ViewMut<'_, G>, ViewMut<'_, H>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static> TightPack for (&mut ViewMut<'_, A>, &mut ViewMut<'_, B>, &mut ViewMut<'_, C>, &mut ViewMut<'_, D>, &mut ViewMut<'_, E>, &mut ViewMut<'_, F>, &mut ViewMut<'_, G>, &mut ViewMut<'_, H>, &mut ViewMut<'_, I>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static> TightPack for (ViewMut<'_, A>, ViewMut<'_, B>, ViewMut<'_, C>, ViewMut<'_, D>, ViewMut<'_, E>, ViewMut<'_, F>, ViewMut<'_, G>, ViewMut<'_, H>, ViewMut<'_, I>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static> TightPack for (&mut ViewMut<'_, A>, &mut ViewMut<'_, B>, &mut ViewMut<'_, C>, &mut ViewMut<'_, D>, &mut ViewMut<'_, E>, &mut ViewMut<'_, F>, &mut ViewMut<'_, G>, &mut ViewMut<'_, H>, &mut ViewMut<'_, I>, &mut ViewMut<'_, J>)
impl<A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static, G: 'static, H: 'static, I: 'static, J: 'static> TightPack for (ViewMut<'_, A>, ViewMut<'_, B>, ViewMut<'_, C>, ViewMut<'_, D>, ViewMut<'_, E>, ViewMut<'_, F>, ViewMut<'_, G>, ViewMut<'_, H>, ViewMut<'_, I>, ViewMut<'_, J>)