bevy::ecs::prelude

Trait SystemSet

Source
pub trait SystemSet:
    'static
    + Send
    + Sync
    + Debug {
    // Required methods
    fn dyn_clone(&self) -> Box<dyn SystemSet>;
    fn as_dyn_eq(&self) -> &(dyn DynEq + 'static);
    fn dyn_hash(&self, state: &mut dyn Hasher);

    // Provided methods
    fn system_type(&self) -> Option<TypeId> { ... }
    fn is_anonymous(&self) -> bool { ... }
    fn intern(&self) -> Interned<dyn SystemSet>
       where Self: Sized { ... }
}
Expand description

Types that identify logical groups of systems.

Required Methods§

Source

fn dyn_clone(&self) -> Box<dyn SystemSet>

Clones this SystemSet.

Source

fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)

Casts this value to a form where it can be compared with other type-erased values.

Source

fn dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given Hasher.

Provided Methods§

Source

fn system_type(&self) -> Option<TypeId>

Returns Some if this system set is a SystemTypeSet.

Source

fn is_anonymous(&self) -> bool

Returns true if this system set is an AnonymousSet.

Source

fn intern(&self) -> Interned<dyn SystemSet>
where Self: Sized,

Returns an Interned value corresponding to self.

Trait Implementations§

Source§

impl Hash for dyn SystemSet

Source§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
Source§

impl Internable for dyn SystemSet

Source§

fn leak(&self) -> &'static dyn SystemSet

Creates a static reference to self, possibly leaking memory.
Source§

fn ref_eq(&self, other: &(dyn SystemSet + 'static)) -> bool

Returns true if the two references point to the same value.
Source§

fn ref_hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds the reference to the hasher.
Source§

impl PartialEq for dyn SystemSet

Source§

fn eq(&self, other: &(dyn SystemSet + 'static)) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for dyn SystemSet

Implementations on Foreign Types§

Source§

impl SystemSet for AccessibilitySystem
where AccessibilitySystem: 'static + Send + Sync + Clone + Eq + Debug + Hash,

Source§

fn dyn_clone(&self) -> Box<dyn SystemSet>

Source§

fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)

Source§

fn dyn_hash(&self, state: &mut dyn Hasher)

Implementors§