Trait despero::ecs::context::IntoData

source ·
pub trait IntoData<With>: Send + Sync {
    type Target: Data;

    // Required method
    unsafe fn into_data(self, with: &mut With) -> Self::Target;
}
Expand description

Convert a tuple or other type into Data.

Required Associated Types§

source

type Target: Data

The corresponding Data type.

Required Methods§

source

unsafe fn into_data(self, with: &mut With) -> Self::Target

Performs the conversion.

Safety

Converts a tuple of references into NonNull. The lifetime is captures by Context

Implementations on Foreign Types§

source§

impl<L, K, J, I, H, G, F, With> IntoData<With> for (&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F)where With: Component, L: Component, K: Component, J: Component, I: Component, H: Component, G: Component, F: Component,

§

type Target = [ErasedCell; 8]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F) as IntoData<With>>::Target

source§

impl<L, K, J, I, H, G, With> IntoData<With> for (&mut L, &mut K, &mut J, &mut I, &mut H, &mut G)where With: Component, L: Component, K: Component, J: Component, I: Component, H: Component, G: Component,

§

type Target = [ErasedCell; 7]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J, &mut I, &mut H, &mut G) as IntoData<With>>::Target

source§

impl<L, K, J, I, H, G, F, E, D, With> IntoData<With> for (&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E, &mut D)where With: Component, L: Component, K: Component, J: Component, I: Component, H: Component, G: Component, F: Component, E: Component, D: Component,

§

type Target = [ErasedCell; 10]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E, &mut D) as IntoData<With>>::Target

source§

impl<L, K, J, I, H, G, F, E, With> IntoData<With> for (&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E)where With: Component, L: Component, K: Component, J: Component, I: Component, H: Component, G: Component, F: Component, E: Component,

§

type Target = [ErasedCell; 9]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E) as IntoData<With>>::Target

source§

impl<With> IntoData<With> for ()where With: Component,

§

type Target = [ErasedCell; 1]

source§

unsafe fn into_data(self, with: &mut With) -> <() as IntoData<With>>::Target

source§

impl<L, K, J, I, H, G, F, E, D, C, With> IntoData<With> for (&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E, &mut D, &mut C)where With: Component, L: Component, K: Component, J: Component, I: Component, H: Component, G: Component, F: Component, E: Component, D: Component, C: Component,

§

type Target = [ErasedCell; 11]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E, &mut D, &mut C) as IntoData<With>>::Target

source§

impl<L, K, With> IntoData<With> for (&mut L, &mut K)where With: Component, L: Component, K: Component,

§

type Target = [ErasedCell; 3]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K) as IntoData<With>>::Target

source§

impl<L, K, J, I, H, G, F, E, D, C, B, A, With> IntoData<With> for (&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E, &mut D, &mut C, &mut B, &mut A)where With: Component, L: Component, K: Component, J: Component, I: Component, H: Component, G: Component, F: Component, E: Component, D: Component, C: Component, B: Component, A: Component,

§

type Target = [ErasedCell; 13]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E, &mut D, &mut C, &mut B, &mut A) as IntoData<With>>::Target

source§

impl<L, With> IntoData<With> for (&mut L,)where With: Component, L: Component,

§

type Target = [ErasedCell; 2]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L,) as IntoData<With>>::Target

source§

impl<L, K, J, With> IntoData<With> for (&mut L, &mut K, &mut J)where With: Component, L: Component, K: Component, J: Component,

§

type Target = [ErasedCell; 4]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J) as IntoData<With>>::Target

source§

impl<L, K, J, I, H, With> IntoData<With> for (&mut L, &mut K, &mut J, &mut I, &mut H)where With: Component, L: Component, K: Component, J: Component, I: Component, H: Component,

§

type Target = [ErasedCell; 6]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J, &mut I, &mut H) as IntoData<With>>::Target

source§

impl<L, K, J, I, H, G, F, E, D, C, B, With> IntoData<With> for (&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E, &mut D, &mut C, &mut B)where With: Component, L: Component, K: Component, J: Component, I: Component, H: Component, G: Component, F: Component, E: Component, D: Component, C: Component, B: Component,

§

type Target = [ErasedCell; 12]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J, &mut I, &mut H, &mut G, &mut F, &mut E, &mut D, &mut C, &mut B) as IntoData<With>>::Target

source§

impl<L, K, J, I, With> IntoData<With> for (&mut L, &mut K, &mut J, &mut I)where With: Component, L: Component, K: Component, J: Component, I: Component,

§

type Target = [ErasedCell; 5]

source§

unsafe fn into_data( self, with: &mut With ) -> <(&mut L, &mut K, &mut J, &mut I) as IntoData<With>>::Target

Implementors§