pub trait GameObject {
// Provided methods
fn can_be_targeted_by(&self, _sa: &SpellAbility) -> bool { ... }
fn is_valid(
&self,
restrictions: &[String],
source_controller: PlayerId,
source: &Card,
spell_ability: &CardTraitBase,
) -> bool { ... }
fn is_valid_single(
&self,
_restriction: &str,
_source_controller: PlayerId,
_source: &Card,
_spell_ability: &CardTraitBase,
) -> bool { ... }
fn has_property(
&self,
_property: &str,
_source_controller: PlayerId,
_source: &Card,
_spell_ability: &CardTraitBase,
) -> bool { ... }
}Provided Methods§
fn can_be_targeted_by(&self, _sa: &SpellAbility) -> bool
fn is_valid( &self, restrictions: &[String], source_controller: PlayerId, source: &Card, spell_ability: &CardTraitBase, ) -> bool
fn is_valid_single( &self, _restriction: &str, _source_controller: PlayerId, _source: &Card, _spell_ability: &CardTraitBase, ) -> bool
fn has_property( &self, _property: &str, _source_controller: PlayerId, _source: &Card, _spell_ability: &CardTraitBase, ) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".