Struct ark_api::render::InstanceId
source · pub struct InstanceId(pub NonZeroU64);Expand description
Stable instance ID for identifying an instance over frame.
This may be typically stored in an option like Option<InstanceId> as not all instances have an ID,
when used that way the option won’t take any extra space, the type will remain 64-bits
Tuple Fields§
§0: NonZeroU64Implementations§
Trait Implementations§
source§impl Clone for InstanceId
impl Clone for InstanceId
source§fn clone(&self) -> InstanceId
fn clone(&self) -> InstanceId
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 Debug for InstanceId
impl Debug for InstanceId
source§impl<'de> Deserialize<'de> for InstanceId
impl<'de> Deserialize<'de> for InstanceId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for InstanceId
impl Hash for InstanceId
source§impl PartialEq<InstanceId> for InstanceId
impl PartialEq<InstanceId> for InstanceId
source§fn eq(&self, other: &InstanceId) -> bool
fn eq(&self, other: &InstanceId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for InstanceId
impl Serialize for InstanceId
impl Copy for InstanceId
impl Eq for InstanceId
impl StructuralEq for InstanceId
impl StructuralPartialEq for InstanceId
Auto Trait Implementations§
impl RefUnwindSafe for InstanceId
impl Send for InstanceId
impl Sync for InstanceId
impl Unpin for InstanceId
impl UnwindSafe for InstanceId
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