Skip to main content

ConsiderationSystem

Trait ConsiderationSystem 

Source
pub trait ConsiderationSystem: ReadOnlySystem<In = ConsiderationInputs, Out = ConsiderationOutputs> { }
Expand description

A specialization of Bevy’s System trait (or more precisely, ReadOnlySystem) that can be used as a Cranium Consideration.

Note that the associated In type only adds the restriction that your custom functions must at least accept the metadata piped into them; you can add any number of Queries, Resource accesses, etc. - as long as they are read-only.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§