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§
Trait Implementations§
Source§impl<'a> IterableAs<'a, IterationExampleMap> for dyn IntegralId + 'a
impl<'a> IterableAs<'a, IterationExampleMap> for dyn IntegralId + 'a
type Iter = Chain<IntoIter<&'a dyn IntegralId, 2>, Map<Values<'a, TypeId, IterationExampleMapCell>, for<'r> fn(&'r IterationExampleMapCell) -> &'r dyn IntegralId>>
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
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
fn iter_mut_as(map: &'a mut IterationExampleMap) -> Self::IterMut
Get a mutable iterator for the specified trait.