Struct rinecs::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: ComponentSend> OrderedData<'a> for ReadAndParent<'a, T> where
<T as Component>::Storage: HierarchicalStorage<'b, T>,
ReadGuardRef<'b, <T as Component>::Storage>: IntoHierarchicalIter<'b, T>,
[src]
impl<'a, T: ComponentSend> OrderedData<'a> for ReadAndParent<'a, T> where
<T as Component>::Storage: HierarchicalStorage<'b, T>,
ReadGuardRef<'b, <T as Component>::Storage>: 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>, Self::Components>
fn query_mask<E: EntitiesStorage>(entities: &E) -> Bitmask
[src]
fn into_iter<E: EntitiesStorage>(entities: &'a E) -> Self::Iter
[src]
fn storage<E: EntitiesStorage>(entities: &'a E) -> Option<Self::Storage>
[src]
fn ordered_ids<S: FastIndexExt, E: EntitiesStorage>(
entities: &'a E,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'a>
[src]
entities: &'a E,
query_mask: Bitmask,
unordered_storage: &S
) -> OrderedIndexGuard<'a>
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,