Type Alias valence::ecs::schedule::NotSystem

pub type NotSystem<T> = AdapterSystem<NotMarker, T>;
Expand description

Invokes Not with the output of another system.

See common_conditions::not for examples.

Aliased Type§

struct NotSystem<T> { /* private fields */ }

Implementations

§

impl<Func, S> AdapterSystem<Func, S>
where Func: Adapt<S>, S: System,

pub const fn new( func: Func, system: S, name: Cow<'static, str>, ) -> AdapterSystem<Func, S>

Creates a new System that uses func to adapt system, via the Adapt trait.

Trait Implementations

§

impl<Func, S> Clone for AdapterSystem<Func, S>
where Func: Clone, S: Clone,

§

fn clone(&self) -> AdapterSystem<Func, S>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<Func, S> ReadOnlySystem for AdapterSystem<Func, S>
where Func: Adapt<S>, S: ReadOnlySystem,

§

fn run_readonly(&mut self, input: Self::In, world: &World) -> Self::Out

Runs this system with the given input in the world. Read more
§

impl<Func, S> System for AdapterSystem<Func, S>
where Func: Adapt<S>, S: System,

§

type In = <Func as Adapt<S>>::In

The system’s input. See In for FunctionSystems.
§

type Out = <Func as Adapt<S>>::Out

The system’s output.
§

fn name(&self) -> Cow<'static, str>

Returns the system’s name.
§

fn component_access(&self) -> &Access<ComponentId>

Returns the system’s component Access.
§

fn archetype_component_access(&self) -> &Access<ArchetypeComponentId>

Returns the system’s archetype component Access.
§

fn is_send(&self) -> bool

Returns true if the system is Send.
§

fn is_exclusive(&self) -> bool

Returns true if the system must be run exclusively.
§

fn has_deferred(&self) -> bool

Returns true if system as deferred buffers
§

unsafe fn run_unsafe( &mut self, input: <AdapterSystem<Func, S> as System>::In, world: UnsafeWorldCell<'_>, ) -> <AdapterSystem<Func, S> as System>::Out

Runs the system with the given input in the world. Unlike System::run, this function can be called in parallel with other systems and may break Rust’s aliasing rules if used incorrectly, making it unsafe to call. Read more
§

fn run( &mut self, input: <AdapterSystem<Func, S> as System>::In, world: &mut World, ) -> <AdapterSystem<Func, S> as System>::Out

Runs the system with the given input in the world. Read more
§

fn apply_deferred(&mut self, world: &mut World)

Applies any Deferred system parameters (or other system buffers) of this system to the world. Read more
§

fn queue_deferred(&mut self, world: DeferredWorld<'_>)

Enqueues any Deferred system parameters (or other system buffers) of this system into the world’s command buffer.
§

fn initialize(&mut self, world: &mut World)

Initialize the system.
§

fn update_archetype_component_access(&mut self, world: UnsafeWorldCell<'_>)

Update the system’s archetype component Access. Read more
§

fn check_change_tick(&mut self, change_tick: Tick)

Checks any Ticks stored on this system and wraps their value if they get too old. Read more
§

fn default_system_sets(&self) -> Vec<Interned<dyn SystemSet>>

Returns the system’s default system sets. Read more
§

fn get_last_run(&self) -> Tick

Gets the tick indicating the last time this system ran.
§

fn set_last_run(&mut self, last_run: Tick)

Overwrites the tick indicating the last time this system ran. Read more
§

fn type_id(&self) -> TypeId

Returns the TypeId of the underlying system type.