pub struct EntityDb<T: EntityItem + EntityKochFrom<O, S>, O: EntityItem = T, S = (), Is = ()> {
pub live: GeneId,
/* private fields */
}Fields§
§live: GeneIdImplementations§
Source§impl<S, T: EntityItem + EntityKochFrom<O, S>, O: EntityItem, Is: 'static> EntityDb<T, O, S, Is>
impl<S, T: EntityItem + EntityKochFrom<O, S>, O: EntityItem, Is: 'static> EntityDb<T, O, S, Is>
pub fn get_or_add( &mut self, gene: &Gene, entity: &mut T, ) -> Result<(), ShahError>
pub fn get(&mut self, gene: &Gene, entity: &mut T) -> Result<(), ShahError>
pub fn add(&mut self, entity: &mut T) -> Result<(), ShahError>
pub fn count(&mut self) -> Result<EntityCount, ShahError>
pub fn set(&mut self, entity: &mut T) -> Result<(), ShahError>
pub fn keyed(&mut self, key: &Gene, entity: &mut T) -> Result<(), ShahError>
pub fn del(&mut self, gene: &Gene, entity: &mut T) -> Result<(), ShahError>
pub fn list(&mut self, id: GeneId, result: &mut [T]) -> Result<usize, ShahError>
Source§impl<S, T: EntityItem + EntityKochFrom<O, S>, O: EntityItem, Is: 'static> EntityDb<T, O, S, Is>
impl<S, T: EntityItem + EntityKochFrom<O, S>, O: EntityItem, Is: 'static> EntityDb<T, O, S, Is>
Source§impl<S, T: EntityItem + EntityKochFrom<O, S>, O: EntityItem, Is: 'static> EntityDb<T, O, S, Is>
impl<S, T: EntityItem + EntityKochFrom<O, S>, O: EntityItem, Is: 'static> EntityDb<T, O, S, Is>
pub fn set_koch( &mut self, koch: Option<EntityKoch<T, O, S>>, ) -> Result<(), ShahError>
pub fn set_inspector(&mut self, inspector: EntityInspector<T, Is>)
pub fn set_dead_list_disabled(&mut self, disabled: bool)
pub fn set_work_iter(&mut self, work_iter: usize)
Trait Implementations§
Source§impl<T: Debug + EntityItem + EntityKochFrom<O, S>, O: Debug + EntityItem, S: Debug, Is: Debug> Debug for EntityDb<T, O, S, Is>
impl<T: Debug + EntityItem + EntityKochFrom<O, S>, O: Debug + EntityItem, S: Debug, Is: Debug> Debug for EntityDb<T, O, S, Is>
Auto Trait Implementations§
impl<T, O = T, S = (), Is = ()> !Freeze for EntityDb<T, O, S, Is>
impl<T, O = T, S = (), Is = ()> !RefUnwindSafe for EntityDb<T, O, S, Is>
impl<T, O, S, Is> Send for EntityDb<T, O, S, Is>
impl<T, O = T, S = (), Is = ()> !Sync for EntityDb<T, O, S, Is>
impl<T, O, S, Is> Unpin for EntityDb<T, O, S, Is>
impl<T, O, S, Is> UnwindSafe for EntityDb<T, O, S, Is>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more