pub fn put<T: Entity>(&mut self, entity: T) -> bool {
        self.0
            .entities
            .entry(TypeId::of::<T>())
            .or_default()
            .insert(
                entity.name().to_string(),
                Box::new(entity) as Box<dyn Any + Send + Sync>,
            )
            .is_none()
    }
/// Saves new entity or updates existing. Returns true if entity was created.  
///
/// Useful for tests
Saves new entity or updates existing. Returns true if entity was created.
Useful for tests
Saves new entity or updates existing . Returns true if entity was created . Useful for tests
pub fn put<T: Entity>(&mut self, entity: T) -> bool {
        self.0
            .entities
            .entry(TypeId::of::<T>())
            .or_default()
            .insert(
                entity.name().to_string(),
                Box::new(entity) as Box<dyn Any + Send + Sync>,
            )
            .is_none()
    }
pub fn put < T : Entity > ( & mut self , entity : T ) -> bool { self . 0 . entities . entry ( TypeId :: of :: < T > ( ) ) . or_default ( ) . insert ( entity . name ( ) . to_string ( ) , Box :: new ( entity ) as Box < dyn Any + Send + Sync > , ) . is_none ( ) }
Saves new entity or updates existing.
Saves new entity or updates existing .
&mut self
entity
T