use specs::{Component, VecStorage}; use std::{fmt::Debug, marker::Send, ops::Deref}; #[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize)] pub struct Last(pub C); impl Component for Last { type Storage = VecStorage; } impl PartialEq for Last { fn eq(&self, other: &C) -> bool { self.0 == *other } }