Struct bottomless_pit::resource::ResourceId
source · pub struct ResourceId<T>(/* private fields */);Expand description
An Id for a specific type of resource used interally in the engine
Trait Implementations§
source§impl<T> Clone for ResourceId<T>
impl<T> Clone for ResourceId<T>
source§impl<T> Debug for ResourceId<T>
impl<T> Debug for ResourceId<T>
source§impl<T> Hash for ResourceId<T>
impl<T> Hash for ResourceId<T>
source§impl<T: Ord> Ord for ResourceId<T>
impl<T: Ord> Ord for ResourceId<T>
source§fn cmp(&self, other: &ResourceId<T>) -> Ordering
fn cmp(&self, other: &ResourceId<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T> PartialEq for ResourceId<T>
impl<T> PartialEq for ResourceId<T>
source§impl<T: PartialOrd> PartialOrd for ResourceId<T>
impl<T: PartialOrd> PartialOrd for ResourceId<T>
source§fn partial_cmp(&self, other: &ResourceId<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &ResourceId<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T> Copy for ResourceId<T>
impl<T> Eq for ResourceId<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ResourceId<T>where
T: RefUnwindSafe,
impl<T> Send for ResourceId<T>where
T: Send,
impl<T> Sync for ResourceId<T>where
T: Sync,
impl<T> Unpin for ResourceId<T>where
T: Unpin,
impl<T> UnwindSafe for ResourceId<T>where
T: UnwindSafe,
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.