pub struct UseId<T, F> { /* private fields */ }Expand description
A wrapper that provides identity to a value through a function.
This allows attaching identity behavior to any type by providing a function to extract an ID from the wrapped value.
Implementations§
Trait Implementations§
Source§impl<T, F, Id> Identifiable for UseId<T, F>
impl<T, F, Id> Identifiable for UseId<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for UseId<T, F>
impl<T, F> RefUnwindSafe for UseId<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for UseId<T, F>
impl<T, F> Sync for UseId<T, F>
impl<T, F> Unpin for UseId<T, F>
impl<T, F> UnwindSafe for UseId<T, F>where
T: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more