Skip to main content

RunIfExt

Trait RunIfExt 

Source
pub trait RunIfExt<Marker>: IntoSystem<Marker> + Sized {
    // Provided method
    fn run_if<C: RunCondition>(self) -> RunIfSystem<Self, Marker, C> { ... }
}
Expand description

Adds .run_if to anything convertible into a System, gating it on a RunCondition.

Provided Methods§

Source

fn run_if<C: RunCondition>(self) -> RunIfSystem<Self, Marker, C>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Marker, T: IntoSystem<Marker>> RunIfExt<Marker> for T