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: NonZeroU64
Implementations
Trait Implementations
sourceimpl Clone for InstanceId
impl Clone for InstanceId
sourcefn clone(&self) -> InstanceId
fn clone(&self) -> InstanceId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InstanceId
impl Debug for InstanceId
sourceimpl<'de> Deserialize<'de> for InstanceId
impl<'de> Deserialize<'de> for InstanceId
sourcefn 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
sourceimpl Hash for InstanceId
impl Hash for InstanceId
sourceimpl PartialEq<InstanceId> for InstanceId
impl PartialEq<InstanceId> for InstanceId
sourcefn 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 ==
. Read more
sourceimpl 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
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