pub struct SystemAccess {
pub reads: HashSet<TypeId>,
pub writes: HashSet<TypeId>,
}Expand description
Component access declaration for a system.
Tracks which component types a system reads and writes. Two systems conflict if one writes a component the other reads or writes.
Fields§
§reads: HashSet<TypeId>Component types this system reads.
writes: HashSet<TypeId>Component types this system writes.
Implementations§
Source§impl SystemAccess
impl SystemAccess
Sourcepub fn conflicts_with(&self, other: &SystemAccess) -> bool
pub fn conflicts_with(&self, other: &SystemAccess) -> bool
Returns whether this system conflicts with another.
Two systems conflict if one writes a component type that the other reads or writes.
Trait Implementations§
Source§impl Clone for SystemAccess
impl Clone for SystemAccess
Source§fn clone(&self) -> SystemAccess
fn clone(&self) -> SystemAccess
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemAccess
impl Debug for SystemAccess
Auto Trait Implementations§
impl Freeze for SystemAccess
impl RefUnwindSafe for SystemAccess
impl Send for SystemAccess
impl Sync for SystemAccess
impl Unpin for SystemAccess
impl UnsafeUnpin for SystemAccess
impl UnwindSafe for SystemAccess
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