Enum rin::ecs::SystemCondition [−][src]
pub enum SystemCondition { StorageChanged(TypeId), HasComponents(Bitmask), ResourcesChanged(TypeId, Box<dyn Any + 'static, Global>), HasResource(TypeId), All(Vec<SystemCondition, Global>), Any(Vec<SystemCondition, Global>), Not(Box<SystemCondition, Global>), }
Variants
StorageChanged(TypeId)
HasComponents(Bitmask)
HasResource(TypeId)
All(Vec<SystemCondition, Global>)
Any(Vec<SystemCondition, Global>)
Not(Box<SystemCondition, Global>)
Implementations
impl SystemCondition
[src]
impl SystemCondition
[src]pub fn all(all: Vec<SystemCondition, Global>) -> SystemCondition
[src]
pub fn any(any: Vec<SystemCondition, Global>) -> SystemCondition
[src]
pub fn storage_changed<C>() -> SystemCondition where
C: Component,
[src]
C: Component,
pub fn has_resource<R>() -> SystemCondition where
R: 'static,
[src]
R: 'static,
pub fn has_any(mask: Bitmask) -> SystemCondition
[src]
pub fn not(condition: SystemCondition) -> SystemCondition
[src]
pub fn resource_changed<R, F>(f: F) -> SystemCondition where
F: 'static + Send + Fn(&R) -> bool,
R: 'static,
[src]
F: 'static + Send + Fn(&R) -> bool,
R: 'static,
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 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> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]