pub struct TryWrite<T: Component>(/* private fields */);Expand description
Writes a single entity data component type from a chunk, if it’s present.
Trait Implementations§
Source§impl<'a, T: Component> DefaultFilter for TryWrite<T>
impl<'a, T: Component> DefaultFilter for TryWrite<T>
Source§type Filter = EntityFilterTuple<Passthrough, Passthrough, Passthrough>
type Filter = EntityFilterTuple<Passthrough, Passthrough, Passthrough>
The type of entity filter constructed.
Source§impl<'a, T: Component> View<'a> for TryWrite<T>
impl<'a, T: Component> View<'a> for TryWrite<T>
Source§type Iter = TryRefIterMut<'a, T, IterMut<'a, T>>
type Iter = TryRefIterMut<'a, T, IterMut<'a, T>>
The iterator over the chunk data.
Source§fn fetch(
_: &'a ArchetypeData,
chunk: &'a ComponentStorage,
_: ChunkIndex,
_: SetIndex,
) -> Self::Iter
fn fetch( _: &'a ArchetypeData, chunk: &'a ComponentStorage, _: ChunkIndex, _: SetIndex, ) -> Self::Iter
Pulls data out of a chunk.
Source§fn requires_permissions() -> Permissions<ComponentTypeId>
fn requires_permissions() -> Permissions<ComponentTypeId>
Returns the set of permissions required by the view.
Source§fn validate_access(access: &ComponentAccess<'_>) -> bool
fn validate_access(access: &ComponentAccess<'_>) -> bool
Determines if the given component access includes all permissions required by the view.
impl<T: Component> Copy for TryWrite<T>
Auto Trait Implementations§
impl<T> Freeze for TryWrite<T>
impl<T> RefUnwindSafe for TryWrite<T>where
T: RefUnwindSafe,
impl<T> Send for TryWrite<T>
impl<T> Sync for TryWrite<T>
impl<T> Unpin for TryWrite<T>where
T: Unpin,
impl<T> UnwindSafe for TryWrite<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more