Trait rusvid_effect::EffectLogic
source · pub trait EffectLogic: Debug + Element {
// Required method
fn apply(&self, original: Plane) -> Result<Plane, EffectError>;
// Provided methods
fn depends_on_other_effects_ids(&self) -> Vec<ID> { ... }
fn depends_on_other_effects(&self) -> bool { ... }
fn add_depended_on_other_effect(&mut self, effect_id: &str) { ... }
}
Required Methods§
Provided Methods§
fn depends_on_other_effects_ids(&self) -> Vec<ID>
sourcefn depends_on_other_effects(&self) -> bool
fn depends_on_other_effects(&self) -> bool
Returns true
if the effect depends on one (or more) other effects, otherwise the function returns false