[−][src]Macro components_arena::ComponentId
Macro attribute for deriving ComponentId
trait.
Examples
use std::marker::PhantomData; use components_arena::{Component, Id, ComponentId}; macro_attr! { #[derive(ComponentId!)] #[derive(Educe)] #[educe(Debug, Copy, Clone, Eq, PartialEq, Hash, Ord, PartialOrd)] pub struct Item<Tag, X>(Id<ItemNode<Tag>>, PhantomData<X>); }