fn mark_as_dirty(&mut self, entity: Entity) {
        *self
            .ecm
            .component_store_mut()
            .get_mut::<bool>("dirty", entity)
            .unwrap() = true;

        let root = self.ecm.entity_store().root();

        if let Ok(dirty_widgets) = self
            .ecm
            .component_store_mut()
            .get_mut::<Vec<Entity>>("dirty_widgets", root)
        {
            // don't add the same widget twice in a row
            if dirty_widgets.is_empty() || *dirty_widgets.last().unwrap() != entity {
                dirty_widgets.push(entity);
            }
        }
    }
// Mark the widget as dirty.
Mark the widget as dirty.
Mark the widget as dirty .
fn mark_as_dirty(&mut self, entity: Entity) {
        *self
            .ecm
            .component_store_mut()
            .get_mut::<bool>("dirty", entity)
            .unwrap() = true;
        let root = self.ecm.entity_store().root();
        if let Ok(dirty_widgets) = self
            .ecm
            .component_store_mut()
            .get_mut::<Vec<Entity>>("dirty_widgets", root)
        {
            // don't add the same widget twice in a row
            if dirty_widgets.is_empty() || *dirty_widgets.last().unwrap() != entity {
                dirty_widgets.push(entity);
            }
        }
    }
fn mark_as_dirty ( & mut self , entity : Entity ) { * self . ecm . component_store_mut ( ) . get_mut :: < bool > ( " " , entity ) . unwrap ( ) = true ; let root = self . ecm . entity_store ( ) . root ( ) ; if let Ok ( dirty_widgets ) = self . ecm . component_store_mut ( ) . get_mut :: < Vec < Entity > > ( " " , root ) { // don't add the same widget twice in a row if dirty_widgets . is_empty ( ) || * dirty_widgets . last ( ) . unwrap ( ) != entity { dirty_widgets . push ( entity ) ; } } }
Mark the widget as dirty.
Mark the widget as dirty .
&mut self
entity
Entity