Enum rinecs::SystemCondition[][src]

pub enum SystemCondition {
    StorageChanged(Id),
    HasComponents(Bitmask),
    ResourcesChanged(TypeIdBox<dyn Any>),
    HasResource(TypeId),
    All(Vec<SystemCondition>),
    Any(Vec<SystemCondition>),
    Not(Box<SystemCondition>),
}

Variants

StorageChanged(Id)
HasComponents(Bitmask)
ResourcesChanged(TypeIdBox<dyn Any>)
HasResource(TypeId)
All(Vec<SystemCondition>)
Any(Vec<SystemCondition>)
Not(Box<SystemCondition>)

Implementations

impl SystemCondition[src]

pub fn all(all: Vec<SystemCondition>) -> SystemCondition[src]

pub fn any(any: Vec<SystemCondition>) -> SystemCondition[src]

pub fn storage_changed<C: Component>() -> SystemCondition[src]

pub fn has_resource<R: 'static>() -> SystemCondition[src]

pub fn has_any(mask: Bitmask) -> SystemCondition[src]

pub fn not(condition: SystemCondition) -> SystemCondition[src]

pub fn resource_changed<R: 'static, F: 'static + Send + Fn(&R) -> bool>(
    f: F
) -> SystemCondition
[src]

pub fn else_run<Else>(self, cond_else: Else) -> SystemConditionElse<Else>[src]

pub fn build<Else>(self) -> SystemConditionElse<Else>[src]

Trait Implementations

impl Debug for SystemCondition[src]

impl Send for SystemCondition[src]

impl Sync for SystemCondition[src]

Auto Trait Implementations

impl !RefUnwindSafe for SystemCondition

impl Unpin for SystemCondition

impl !UnwindSafe for SystemCondition

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.