pub struct Identity<A>(pub A);๐Deprecated since 0.0.21: Use fp_library::v2::types instead
Expand description
Wraps a value.
Tuple Fieldsยง
ยง0: A๐Deprecated since 0.0.21: Use fp_library::v2::types instead
Trait Implementationsยง
Sourceยงimpl<A: Ord> Ord for Identity<A>
impl<A: Ord> Ord for Identity<A>
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl<A: PartialOrd> PartialOrd for Identity<A>
impl<A: PartialOrd> PartialOrd for Identity<A>
impl<A: Copy> Copy for Identity<A>
impl<A: Eq> Eq for Identity<A>
impl<A> StructuralPartialEq for Identity<A>
Auto Trait Implementationsยง
impl<A> Freeze for Identity<A>where
A: Freeze,
impl<A> RefUnwindSafe for Identity<A>where
A: RefUnwindSafe,
impl<A> Send for Identity<A>where
A: Send,
impl<A> Sync for Identity<A>where
A: Sync,
impl<A> Unpin for Identity<A>where
A: Unpin,
impl<A> UnwindSafe for Identity<A>where
A: 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