[−][src]Struct legion_core::query::Read
Reads a single entity data component type from a chunk.
Trait Implementations
impl<T: Component> Clone for Read<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Component> Copy for Read<T>
[src]
impl<T: Debug + Component> Debug for Read<T>
[src]
impl<T: Component> Default for Read<T>
[src]
impl<'a, T: Component> DefaultFilter for Read<T>
[src]
type Filter = EntityFilterTuple<ComponentFilter<T>, Passthrough, Passthrough>
The type of entity filter constructed.
fn filter() -> Self::Filter
[src]
impl<'a, T: Component> View<'a> for Read<T>
[src]
type Iter = RefIter<'a, T, Iter<'a, T>>
The iterator over the chunk data.
fn fetch(
_: &'a ArchetypeData,
chunk: &'a ComponentStorage,
_: ChunkIndex,
_: SetIndex
) -> Self::Iter
[src]
_: &'a ArchetypeData,
chunk: &'a ComponentStorage,
_: ChunkIndex,
_: SetIndex
) -> Self::Iter
fn validate() -> bool
[src]
fn reads<D: Component>() -> bool
[src]
fn writes<D: Component>() -> bool
[src]
fn validate_access(access: &ComponentAccess) -> bool
[src]
fn requires_permissions() -> Permissions<ComponentTypeId>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Read<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Read<T>
impl<T> Sync for Read<T>
impl<T> Unpin for Read<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Read<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoQuery for T where
T: for<'a> View<'a> + DefaultFilter,
[src]
T: for<'a> View<'a> + DefaultFilter,
fn query() -> Query<T, <T as DefaultFilter>::Filter>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,