/// Unsets any operations that have been queued.
Unsets any operations that have been queued.
Unsets any operations that have been queued .
pub fn unset(&mut self) {
        self.components.queued_changes.clear();
        self.flags = Default::default();
        let mut entities_to_remove: Vec<DeviceEntity> = Vec::new();
        let mut vg_entities_to_remove: Vec<VgEntity> = Vec::new();
        let entities = &mut self.entities;
        for (entity, flags) in entities.devices.iter_mut() {
            if flags.contains(EntityFlags::CREATE) {
                entities_to_remove.push(entity);
            }
            *flags = Default::default();
        }
        entities_to_remove.into_iter().for_each(|entity| {
            entities.devices.remove(entity);
        });
        for (entity, flags) in entities.vgs.iter_mut() {
            if flags.contains(EntityFlags::CREATE) {
                vg_entities_to_remove.push(entity);
            }
            *flags = Default::default();
        }
        vg_entities_to_remove.into_iter().for_each(|entity| {
            entities.vgs.remove(entity);
        });
    }
pub fn unset ( & mut self ) { self . components . queued_changes . clear ( ) ; self . flags = Default :: default ( ) ; let mut entities_to_remove : Vec < DeviceEntity > = Vec :: new ( ) ; let mut vg_entities_to_remove : Vec < VgEntity > = Vec :: new ( ) ; let entities = & mut self . entities ; for ( entity , flags ) in entities . devices . iter_mut ( ) { if flags . contains ( EntityFlags :: CREATE ) { entities_to_remove . push ( entity ) ; } * flags = Default :: default ( ) ; } entities_to_remove . into_iter ( ) . for_each ( | entity | { entities . devices . remove ( entity ) ; } ) ; for ( entity , flags ) in entities . vgs . iter_mut ( ) { if flags . contains ( EntityFlags :: CREATE ) { vg_entities_to_remove . push ( entity ) ; } * flags = Default :: default ( ) ; } vg_entities_to_remove . into_iter ( ) . for_each ( | entity | { entities . vgs . remove ( entity ) ; } ) ; }
Unsets any operations that have been queued.
Unsets any operations that have been queued .
&mut self