pub fn remove_tag<T: Tag>(&mut self, entity: Entity) -> Result<(), EntityMutationError> {
        if !self.is_alive(entity) {
            return Err(EntityMutationError::DoesNotExist);
        }

        if self.get_tag::<T>(entity).is_some() {
            trace!(
                world = self.id().0,
                ?entity,
                tag = std::any::type_name::<T>(),
                "Removing tag from entity"
            );

            // move the entity into a suitable chunk
            self.move_entity(entity, &[], &[], &[], &[TagTypeId::of::<T>()]);
        }

        Ok(())
    }
/// Removes a tag from an entity.
Removes a tag from an entity.
Removes a tag from an entity .
pub fn remove_tag<T: Tag>(&mut self, entity: Entity) -> Result<(), EntityMutationError> {
        if !self.is_alive(entity) {
            return Err(EntityMutationError::DoesNotExist);
        }
        if self.get_tag::<T>(entity).is_some() {
            trace!(
                world = self.id().0,
                ?entity,
                tag = std::any::type_name::<T>(),
                "Removing tag from entity"
            );
            // move the entity into a suitable chunk
            self.move_entity(entity, &[], &[], &[], &[TagTypeId::of::<T>()]);
        }
        Ok(())
    }
pub fn remove_tag < T : Tag > ( & mut self , entity : Entity ) -> Result < ( ) , EntityMutationError > { if ! self . is_alive ( entity ) { return Err ( EntityMutationError :: DoesNotExist ) ; } if self . get_tag :: < T > ( entity ) . is_some ( ) { trace ! ( world self id ( ) 0 entity tag std any type_name T ( ) " " ) ; // move the entity into a suitable chunk self . move_entity ( entity , & [ ] , & [ ] , & [ ] , & [ TagTypeId :: of :: < T > ( ) ] ) ; } Ok ( ( ) ) }
Removes a tag from an entity.
Removes a tag from an entity .
&mut self
entity
Entity
&mut self
entity
Entity