1 2 3 4 5 6 7 8 9 10 11 12 13
use std::collections::HashSet; use dces::prelude::*; /// `SelectedEntities` describes a list of selected entities. #[derive(Clone, Default, Debug, PartialEq)] pub struct SelectedEntities(pub HashSet<Entity>); impl From<HashSet<Entity>> for SelectedEntities { fn from(i: HashSet<Entity>) -> Self { SelectedEntities(i) } }