[][src]Trait summon::Transmutation

pub trait Transmutation {
    fn ingredients(&self) -> &'static [TypeId];
fn product(&self) -> TypeId;
fn transmute(&self, inputs: &[&dyn Any]) -> Box<dyn Any>; }

Transmutations require ingredients and produce a product. This is usually a function.

Required methods

fn ingredients(&self) -> &'static [TypeId]

fn product(&self) -> TypeId

fn transmute(&self, inputs: &[&dyn Any]) -> Box<dyn Any>

Loading content...

Trait Implementations

impl<'a> FromIterator<&'a (dyn Transmutation + 'a)> for Materials[src]

Implementors

Loading content...