pub struct Identity<T>(/* private fields */);Expand description
Identity morphism — useful as a unit in composition chains and as the default transform in pipelines.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Identity<T>
impl<T> RefUnwindSafe for Identity<T>
impl<T> Send for Identity<T>
impl<T> Sync for Identity<T>
impl<T> Unpin for Identity<T>
impl<T> UnsafeUnpin for Identity<T>
impl<T> UnwindSafe for Identity<T>
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