pub struct Generation(/* private fields */);Expand description
A generation counter for validity tracking.
Implementations§
Source§impl Generation
impl Generation
Sourcepub const INITIAL: Generation
pub const INITIAL: Generation
The initial generation.
Sourcepub fn advance(self) -> Generation
pub fn advance(self) -> Generation
Advances to the next generation.
Trait Implementations§
Source§impl Clone for Generation
impl Clone for Generation
impl Copy for Generation
Source§impl Debug for Generation
impl Debug for Generation
impl Eq for Generation
Source§impl PartialEq for Generation
impl PartialEq for Generation
impl StructuralPartialEq for Generation
Auto Trait Implementations§
impl Forget for Generation
impl Freeze for Generation
impl Move for Generation
impl RefUnwindSafe for Generation
impl Send for Generation
impl Sync for Generation
impl Unpin for Generation
impl UnsafeUnpin for Generation
impl UnwindSafe for Generation
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