pub enum DemeId<'name> {
Index(usize),
Name(&'name str),
}
Expand description
A deme can be identified as an index or as a name
Variants§
Trait Implementations§
impl<'name> Copy for DemeId<'name>
Auto Trait Implementations§
impl<'name> RefUnwindSafe for DemeId<'name>
impl<'name> Send for DemeId<'name>
impl<'name> Sync for DemeId<'name>
impl<'name> Unpin for DemeId<'name>
impl<'name> UnwindSafe for DemeId<'name>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more