Struct simrs::ComponentId
source · [−]pub struct ComponentId<V> { /* private fields */ }
Expand description
A type-safe identifier of a component. This is an analogue of Key
used specifically for components.
Trait Implementations
sourceimpl<T> Clone for ComponentId<T>
impl<T> Clone for ComponentId<T>
sourceimpl<V: Debug> Debug for ComponentId<V>
impl<V: Debug> Debug for ComponentId<V>
sourceimpl<V: Hash> Hash for ComponentId<V>
impl<V: Hash> Hash for ComponentId<V>
sourceimpl<V: PartialEq> PartialEq<ComponentId<V>> for ComponentId<V>
impl<V: PartialEq> PartialEq<ComponentId<V>> for ComponentId<V>
sourcefn eq(&self, other: &ComponentId<V>) -> bool
fn eq(&self, other: &ComponentId<V>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComponentId<V>) -> bool
fn ne(&self, other: &ComponentId<V>) -> bool
This method tests for !=
.
impl<T> Copy for ComponentId<T>
impl<V: Eq> Eq for ComponentId<V>
impl<V> StructuralEq for ComponentId<V>
impl<V> StructuralPartialEq for ComponentId<V>
Auto Trait Implementations
impl<V> RefUnwindSafe for ComponentId<V> where
V: RefUnwindSafe,
impl<V> Send for ComponentId<V> where
V: Send,
impl<V> Sync for ComponentId<V> where
V: Sync,
impl<V> Unpin for ComponentId<V> where
V: Unpin,
impl<V> UnwindSafe for ComponentId<V> where
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more