struct ResourceIdentity<T> {
id: u64,
_phantom: PhantomData<T>,
}
Available on
vulkan
only.Expand description
A unique identifier for a resource of type T
.
This is used as a hashable key for resources, which is permanently unique through the lifetime of the program.
Fields§
§id: u64
§_phantom: PhantomData<T>
Trait Implementations§
Source§impl<T: Clone> Clone for ResourceIdentity<T>
impl<T: Clone> Clone for ResourceIdentity<T>
Source§fn clone(&self) -> ResourceIdentity<T>
fn clone(&self) -> ResourceIdentity<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for ResourceIdentity<T>
impl<T: Debug> Debug for ResourceIdentity<T>
Source§impl<T: Hash> Hash for ResourceIdentity<T>
impl<T: Hash> Hash for ResourceIdentity<T>
Source§impl<T: PartialEq> PartialEq for ResourceIdentity<T>
impl<T: PartialEq> PartialEq for ResourceIdentity<T>
impl<T: Copy> Copy for ResourceIdentity<T>
impl<T: Eq> Eq for ResourceIdentity<T>
impl<T> StructuralPartialEq for ResourceIdentity<T>
Auto Trait Implementations§
impl<T> Freeze for ResourceIdentity<T>
impl<T> RefUnwindSafe for ResourceIdentity<T>where
T: RefUnwindSafe,
impl<T> Send for ResourceIdentity<T>where
T: Send,
impl<T> Sync for ResourceIdentity<T>where
T: Sync,
impl<T> Unpin for ResourceIdentity<T>where
T: Unpin,
impl<T> UnwindSafe for ResourceIdentity<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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.