pub struct Sequence(/* private fields */);Expand description
Monotonic event sequence number for change detection.
Each event processed by a driver is assigned a unique sequence number
via World::next_sequence. Resources record the sequence at which
they were last written. A resource is considered “changed” if its
changed_at equals the world’s current_sequence. Wrapping is
harmless — only equality is checked.
Trait Implementations§
impl Copy for Sequence
impl Eq for Sequence
impl StructuralPartialEq for Sequence
Auto Trait Implementations§
impl Freeze for Sequence
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnsafeUnpin for Sequence
impl UnwindSafe for Sequence
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