pub struct GenerationalId<T: Copy> { /* private fields */ }Implementations§
Source§impl<T: Copy> GenerationalId<T>
impl<T: Copy> GenerationalId<T>
pub fn get(&self, expected_generation: Generation) -> Result<T>
pub const fn new(id: T, generation: Generation) -> Self
pub const fn new_immortal(id: T) -> Self
Auto Trait Implementations§
impl<T> Freeze for GenerationalId<T>where
T: Freeze,
impl<T> RefUnwindSafe for GenerationalId<T>where
T: RefUnwindSafe,
impl<T> Send for GenerationalId<T>where
T: Send,
impl<T> Sync for GenerationalId<T>where
T: Sync,
impl<T> Unpin for GenerationalId<T>where
T: Unpin,
impl<T> UnwindSafe for GenerationalId<T>where
T: UnwindSafe,
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