Struct rin::ecs::operators::ReadAndParent [−][src]
pub struct ReadAndParent<'a, T> { /* fields omitted */ }
Operator over hierarchical components that will select an entity’s component and it’s parent for read only
#[derive(HierarchicalComponent, Debug)] struct Position{x: f32, y: f32} for (pos, parent_pos) in entities.ordered_iter_for::<ReadAndParent<Position>>(){ }
Trait Implementations
impl<'a, T> OrderedData<'a> for ReadAndParent<'a, T> where
T: ComponentSend,
<T as Component>::Storage: for<'b> HierarchicalStorage<'b, T>,
ReadGuardRef<'b, <T as Component>::Storage>: for<'b> IntoHierarchicalIter<'b, T>,
[src]
impl<'a, T> OrderedData<'a> for ReadAndParent<'a, T> where
T: ComponentSend,
<T as Component>::Storage: for<'b> HierarchicalStorage<'b, T>,
ReadGuardRef<'b, <T as Component>::Storage>: for<'b> IntoHierarchicalIter<'b, T>,
[src]type Iter = ReadAndParentIter<'a, T>
type Components = T
type ComponentsRef = (&'a T, Option<&'a T>)
type Storage = ParentStorageRead<'a, <T as Component>::Storage, ReadGuardRef<'a, <T as Component>::Storage>, <ReadAndParent<'a, T> as OrderedData<'a>>::Components>
pub fn query_mask<E>(entities: &E) -> Bitmask where
E: EntitiesStorage,
[src]
E: EntitiesStorage,
pub fn into_iter<E>(
entities: &'a E
) -> <ReadAndParent<'a, T> as OrderedData<'a>>::Iter where
E: EntitiesStorage,
[src]
entities: &'a E
) -> <ReadAndParent<'a, T> as OrderedData<'a>>::Iter where
E: EntitiesStorage,
pub fn storage<E>(
entities: &'a E
) -> Option<<ReadAndParent<'a, T> as OrderedData<'a>>::Storage> where
E: EntitiesStorage,
[src]
entities: &'a E
) -> Option<<ReadAndParent<'a, T> as OrderedData<'a>>::Storage> where
E: EntitiesStorage,
pub fn ordered_ids<S, E>(
entities: &'a E,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'a> where
E: EntitiesStorage,
S: FastIndexExt,
[src]
entities: &'a E,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'a> where
E: EntitiesStorage,
S: FastIndexExt,
impl<'_, '_, T> SafeIter<'_> for ReadAndParent<'_, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ReadAndParent<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for ReadAndParent<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Sync for ReadAndParent<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for ReadAndParent<'a, T>
impl<'a, T> UnwindSafe for ReadAndParent<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]