pub struct Identity<T>(/* private fields */);Expand description
A ToId implementation that treats the implicit index as the external ID.
This requires that the external ID type T can be constructed from a usize.
Implementations§
Trait Implementations§
impl<T> Copy for Identity<T>
Auto Trait Implementations§
impl<T> Freeze for Identity<T>
impl<T> RefUnwindSafe for Identity<T>where
T: RefUnwindSafe,
impl<T> Send for Identity<T>where
T: Send,
impl<T> Sync for Identity<T>where
T: Sync,
impl<T> Unpin for Identity<T>where
T: Unpin,
impl<T> UnsafeUnpin for Identity<T>
impl<T> UnwindSafe for Identity<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