pub struct IdSnapshot {
pub index: u32,
pub generation: u32,
}Expand description
Serializable identifier snapshot.
Fields§
§index: u32Arena index for the entity.
generation: u32Generation counter for ABA safety.
Trait Implementations§
Source§impl Clone for IdSnapshot
impl Clone for IdSnapshot
Source§fn clone(&self) -> IdSnapshot
fn clone(&self) -> IdSnapshot
Returns a duplicate 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 IdSnapshot
impl Debug for IdSnapshot
Source§impl<'de> Deserialize<'de> for IdSnapshot
impl<'de> Deserialize<'de> for IdSnapshot
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 From<ObligationId> for IdSnapshot
impl From<ObligationId> for IdSnapshot
Source§fn from(id: ObligationId) -> Self
fn from(id: ObligationId) -> Self
Converts to this type from the input type.
Source§impl From<RegionId> for IdSnapshot
impl From<RegionId> for IdSnapshot
Source§impl From<TaskId> for IdSnapshot
impl From<TaskId> for IdSnapshot
Source§impl PartialEq for IdSnapshot
impl PartialEq for IdSnapshot
Source§impl Serialize for IdSnapshot
impl Serialize for IdSnapshot
impl Copy for IdSnapshot
impl Eq for IdSnapshot
impl StructuralPartialEq for IdSnapshot
Auto Trait Implementations§
impl Freeze for IdSnapshot
impl RefUnwindSafe for IdSnapshot
impl Send for IdSnapshot
impl Sync for IdSnapshot
impl Unpin for IdSnapshot
impl UnwindSafe for IdSnapshot
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).