Trait ruststep::tables::EntityTable[][src]

pub trait EntityTable<T: Holder<Table = Self>> {
    fn get_owned(&self, entity_id: u64) -> Result<T::Owned>;
fn owned_iter<'table>(
        &'table self
    ) -> Box<dyn Iterator<Item = Result<T::Owned>> + 'table>; }
Expand description

Trait for tables which pulls an entity (T) from an entity id (u64)

Required methods

Get owned entity from table

Get owned entities as an iterator

Implementors