[][src]Struct legion::storage::PackedStorage

pub struct PackedStorage<T: Component> { /* fields omitted */ }

Stores a slice of components of type T for each archetype. Archetype slices are sorted according to the group that component T belongs to. Each slice may be packed into a single allocation to optimise for group-based access.

Trait Implementations

impl<'a, T: Component> ComponentStorage<'a, T> for PackedStorage<T>[src]

type Iter = ComponentIter<'a, T>

An iterator of shared archetype slice references.

type IterMut = ComponentIterMut<'a, T>

An iterator of mutable archetype slice references.

impl<T: Debug + Component> Debug for PackedStorage<T>[src]

impl<T: Component> Default for PackedStorage<T>[src]

impl<T: Component> Send for PackedStorage<T>[src]

impl<T: Component> Sync for PackedStorage<T>[src]

impl<T: Component> UnknownComponentStorage for PackedStorage<T>[src]

fn transfer_component(
    &mut self,
    src_archetype: ArchetypeIndex,
    src_component: ComponentIndex,
    dst_archetype: ArchetypeIndex,
    dst: &mut dyn UnknownComponentStorage
)
[src]

Moves a component to a new storage.

Auto Trait Implementations

impl<T> !RefUnwindSafe for PackedStorage<T>

impl<T> Unpin for PackedStorage<T>

impl<T> UnwindSafe for PackedStorage<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,