[][src]Trait weasel::util::Id

pub trait Id {
    type Id: Hash + Eq + Clone + Debug + Send + Serialize + for<'a> Deserialize<'a>;
    fn id(&self) -> &Self::Id;
}

Trait for an object that can provide an Id for itself.

Associated Types

type Id: Hash + Eq + Clone + Debug + Send + Serialize + for<'a> Deserialize<'a>

Type of the id value.

Loading content...

Required methods

fn id(&self) -> &Self::Id

Returns a reference to the current id.

Loading content...

Implementors

impl Id for EmptyStat[src]

type Id = u32

impl<I, V> Id for SimpleAbility<I, V> where
    I: Debug + Hash + Eq + Clone + Send + Serialize + for<'a> Deserialize<'a>, 
[src]

type Id = I

impl<I, V> Id for SimpleStatistic<I, V> where
    I: Debug + Hash + Eq + Clone + Send + Serialize + for<'a> Deserialize<'a>, 
[src]

type Id = I

impl<I, V> Id for SimpleStatus<I, V> where
    I: Debug + Hash + Eq + Clone + Send + Serialize + for<'a> Deserialize<'a>, 
[src]

type Id = I

impl<R: BattleRules> Id for Creature<R>[src]

type Id = CreatureId<R>

impl<R: BattleRules> Id for Object<R>[src]

type Id = ObjectId<R>

impl<R: BattleRules> Id for Team<R>[src]

type Id = TeamId<R>

Loading content...