IntegralId

Trait IntegralId 

Source
pub trait IntegralId {
    // Required methods
    fn get_id(&self) -> u64;
    fn set_id(&mut self, id: u64);
}
Expand description

For demonstration purposes, a trait which represents things containing integral ids.

Required Methods§

Source

fn get_id(&self) -> u64

Source

fn set_id(&mut self, id: u64)

Trait Implementations§

Source§

impl<'a> IterableAs<'a, IterationExampleMap> for dyn IntegralId + 'a

Source§

type Iter = Chain<IntoIter<&'a dyn IntegralId, 2>, Map<Values<'a, TypeId, IterationExampleMapCell>, for<'r> fn(&'r IterationExampleMapCell) -> &'r dyn IntegralId>>

Source§

type IterMut = Chain<IntoIter<&'a mut dyn IntegralId, 2>, Map<ValuesMut<'a, TypeId, IterationExampleMapCell>, for<'r> fn(&'r mut IterationExampleMapCell) -> &'r mut dyn IntegralId>>

Source§

fn iter_as(map: &'a IterationExampleMap) -> Self::Iter

Get an immutable iterator for the specified trait.
Source§

fn iter_mut_as(map: &'a mut IterationExampleMap) -> Self::IterMut

Get a mutable iterator for the specified trait.

Implementors§