Trait rin::ecs::operators::FromComponent [−][src]
pub trait FromComponent<'a, T> { pub fn from_component(component: T) -> Self; }
Required methods
pub fn from_component(component: T) -> Self
[src]
Implementors
impl<'_, T1, T2, T3> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B)> for HasOr<(T1, T2, T3)>
[src]
impl<'_, T1, T2, T3> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B)> for HasOr<(T1, T2, T3)>
[src]impl<'_, T1, T2, T3, T4> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B)> for HasOr<(T1, T2, T3, T4)>
[src]
impl<'_, T1, T2, T3, T4> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B)> for HasOr<(T1, T2, T3, T4)>
[src]impl<'_, T1, T2, T3, T4, T5> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B, <T5 as Bools>::B)> for HasOr<(T1, T2, T3, T4, T5)>
[src]
impl<'_, T1, T2, T3, T4, T5> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B, <T5 as Bools>::B)> for HasOr<(T1, T2, T3, T4, T5)>
[src]impl<'_, T1, T2, T3, T4, T5, T6> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B, <T5 as Bools>::B, <T6 as Bools>::B)> for HasOr<(T1, T2, T3, T4, T5, T6)>
[src]
impl<'_, T1, T2, T3, T4, T5, T6> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B, <T5 as Bools>::B, <T6 as Bools>::B)> for HasOr<(T1, T2, T3, T4, T5, T6)>
[src]impl<'_, T1, T2, T3, T4, T5, T6, T7> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B, <T5 as Bools>::B, <T6 as Bools>::B, <T7 as Bools>::B)> for HasOr<(T1, T2, T3, T4, T5, T6, T7)>
[src]
impl<'_, T1, T2, T3, T4, T5, T6, T7> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B, <T5 as Bools>::B, <T6 as Bools>::B, <T7 as Bools>::B)> for HasOr<(T1, T2, T3, T4, T5, T6, T7)>
[src]impl<'_, T1, T2, T3, T4, T5, T6, T7, T8> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B, <T5 as Bools>::B, <T6 as Bools>::B, <T7 as Bools>::B, <T8 as Bools>::B)> for HasOr<(T1, T2, T3, T4, T5, T6, T7, T8)>
[src]
impl<'_, T1, T2, T3, T4, T5, T6, T7, T8> FromComponent<'_, (<T1 as Bools>::B, <T2 as Bools>::B, <T3 as Bools>::B, <T4 as Bools>::B, <T5 as Bools>::B, <T6 as Bools>::B, <T7 as Bools>::B, <T8 as Bools>::B)> for HasOr<(T1, T2, T3, T4, T5, T6, T7, T8)>
[src]impl<'_, T> FromComponent<'_, ()> for Has<T>
[src]
impl<'_, T> FromComponent<'_, ()> for Has<T>
[src]pub fn from_component(()) -> Has<T>
[src]
impl<'a> FromComponent<'a, EntityWithPath<'a>> for EntityWithPath<'a>
[src]
impl<'a> FromComponent<'a, EntityWithPath<'a>> for EntityWithPath<'a>
[src]pub fn from_component(component: EntityWithPath<'a>) -> EntityWithPath<'a>
[src]
impl<'a> FromComponent<'a, EntityWithPathMut<'a>> for EntityWithPathMut<'a>
[src]
impl<'a> FromComponent<'a, EntityWithPathMut<'a>> for EntityWithPathMut<'a>
[src]pub fn from_component(component: EntityWithPathMut<'a>) -> EntityWithPathMut<'a>
[src]
impl<'a> FromComponent<'a, EntityWithReynoldsPath<'a>> for EntityWithReynoldsPath<'a>
[src]
impl<'a> FromComponent<'a, EntityWithReynoldsPath<'a>> for EntityWithReynoldsPath<'a>
[src]pub fn from_component(
component: EntityWithReynoldsPath<'a>
) -> EntityWithReynoldsPath<'a>
[src]
component: EntityWithReynoldsPath<'a>
) -> EntityWithReynoldsPath<'a>
impl<'a> FromComponent<'a, Entity> for Entity
[src]
impl<'a> FromComponent<'a, Entity> for Entity
[src]pub fn from_component(entity: Entity) -> Entity
[src]
impl<'a, T> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::Get> for Read<'a, T> where
T: Component,
<T as Component>::Storage: for<'s> Storage<'s, T>,
[src]
impl<'a, T> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::Get> for Read<'a, T> where
T: Component,
<T as Component>::Storage: for<'s> Storage<'s, T>,
[src]impl<'a, T> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::GetMut> for Write<'a, T> where
T: Component,
<T as Component>::Storage: for<'s> Storage<'s, T>,
[src]
impl<'a, T> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::GetMut> for Write<'a, T> where
T: Component,
<T as Component>::Storage: for<'s> Storage<'s, T>,
[src]impl<'a, T> FromComponent<'a, <T as TupleAny<'a>>::AnyTarget> for ReadOr<'a, T> where
T: TupleAny<'a>,
[src]
impl<'a, T> FromComponent<'a, <T as TupleAny<'a>>::AnyTarget> for ReadOr<'a, T> where
T: TupleAny<'a>,
[src]pub fn from_component(
component: <T as TupleAny<'a>>::AnyTarget
) -> ReadOr<'a, T>
[src]
component: <T as TupleAny<'a>>::AnyTarget
) -> ReadOr<'a, T>
impl<'a, T> FromComponent<'a, Option<<<T as Component>::Storage as Storage<'a, T>>::Get>> for ReadOption<'a, T> where
T: Component,
<T as Component>::Storage: for<'s> Storage<'s, T>,
[src]
impl<'a, T> FromComponent<'a, Option<<<T as Component>::Storage as Storage<'a, T>>::Get>> for ReadOption<'a, T> where
T: Component,
<T as Component>::Storage: for<'s> Storage<'s, T>,
[src]pub fn from_component(
component: Option<<<T as Component>::Storage as Storage<'a, T>>::Get>
) -> ReadOption<'a, T>
[src]
component: Option<<<T as Component>::Storage as Storage<'a, T>>::Get>
) -> ReadOption<'a, T>
impl<'a, T> FromComponent<'a, Option<&'a mut T>> for WriteOption<'a, T> where
T: Component,
[src]
impl<'a, T> FromComponent<'a, Option<&'a mut T>> for WriteOption<'a, T> where
T: Component,
[src]pub fn from_component(component: Option<&'a mut T>) -> WriteOption<'a, T>
[src]
impl<'a, T> FromComponent<'a, bool> for HasOption<T> where
T: 'static,
[src]
impl<'a, T> FromComponent<'a, bool> for HasOption<T> where
T: 'static,
[src]pub fn from_component(has: bool) -> HasOption<T>
[src]
impl<'a, T> FromComponent<'a, ()> for Not<'a, T> where
T: 'static,
[src]
impl<'a, T> FromComponent<'a, ()> for Not<'a, T> where
T: 'static,
[src]pub fn from_component(()) -> Not<'a, T>
[src]
impl<'a, T, Not> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::Get> for ReadNot<'a, T, Not> where
Not: 'static,
T: Component,
<T as Component>::Storage: for<'s> Storage<'s, T>,
[src]
impl<'a, T, Not> FromComponent<'a, <<T as Component>::Storage as Storage<'a, T>>::Get> for ReadNot<'a, T, Not> where
Not: 'static,
T: Component,
<T as Component>::Storage: for<'s> Storage<'s, T>,
[src]impl<'a, T, R> FromComponent<'a, <R as UnorderedData<'a>>::ComponentsRef> for Ref<'a, T, R> where
T: NToOneComponent<'a>,
R: UnorderedData<'a> + FromComponent<'a, <R as UnorderedData<'a>>::ComponentsRef>,
[src]
impl<'a, T, R> FromComponent<'a, <R as UnorderedData<'a>>::ComponentsRef> for Ref<'a, T, R> where
T: NToOneComponent<'a>,
R: UnorderedData<'a> + FromComponent<'a, <R as UnorderedData<'a>>::ComponentsRef>,
[src]pub fn from_component(
component: <R as UnorderedData<'a>>::ComponentsRef
) -> Ref<'a, T, R>
[src]
component: <R as UnorderedData<'a>>::ComponentsRef
) -> Ref<'a, T, R>
impl<'a, T, R> FromComponent<'a, <R as UnorderedData<'a>>::ComponentsRef> for URef<'a, T, R> where
T: OneToOneComponent<'a>,
R: UnorderedData<'a> + FromComponent<'a, <R as UnorderedData<'a>>::ComponentsRef>,
[src]
impl<'a, T, R> FromComponent<'a, <R as UnorderedData<'a>>::ComponentsRef> for URef<'a, T, R> where
T: OneToOneComponent<'a>,
R: UnorderedData<'a> + FromComponent<'a, <R as UnorderedData<'a>>::ComponentsRef>,
[src]pub fn from_component(
component: <R as UnorderedData<'a>>::ComponentsRef
) -> URef<'a, T, R>
[src]
component: <R as UnorderedData<'a>>::ComponentsRef
) -> URef<'a, T, R>
impl<'a, T, R> FromComponent<'a, RefCollection<'a, T, <R as UnorderedData<'a>>::ComponentsRef>> for RefN<'a, T, R> where
R: UnorderedData<'a>,
[src]
impl<'a, T, R> FromComponent<'a, RefCollection<'a, T, <R as UnorderedData<'a>>::ComponentsRef>> for RefN<'a, T, R> where
R: UnorderedData<'a>,
[src]pub fn from_component(
component: RefCollection<'a, T, <R as UnorderedData<'a>>::ComponentsRef>
) -> RefN<'a, T, R>
[src]
component: RefCollection<'a, T, <R as UnorderedData<'a>>::ComponentsRef>
) -> RefN<'a, T, R>