[][src]Trait entity::prelude::EntWrapper

pub trait EntWrapper: Sized {
    pub fn wrap_ent(ent: Box<dyn Ent>) -> Option<Self>;
}

Represents a wrapper around some set of ents that implement Ent, useful for edges that can return one of many different types that are variants of an enum

Required methods

pub fn wrap_ent(ent: Box<dyn Ent>) -> Option<Self>[src]

Returns Some(impl EntWrapper) if the wrapper is able to wrap around the given Ent trait object, otherwise returns None

Loading content...

Implementors

Loading content...