Struct frunk_laws::wrapper::Wrapper
source · pub struct Wrapper<A>(/* private fields */);
Expand description
The Wrapper NewType. Used for writing implementations of traits that we don’t own for type we don’t own.
Avoids the orphan typeclass instances problem in Haskell.
Trait Implementations§
source§impl<A: PartialEq> PartialEq for Wrapper<A>
impl<A: PartialEq> PartialEq for Wrapper<A>
source§impl<A: PartialOrd> PartialOrd for Wrapper<A>
impl<A: PartialOrd> PartialOrd for Wrapper<A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<A: Eq> Eq for Wrapper<A>
impl<A> StructuralPartialEq for Wrapper<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for Wrapper<A>where
A: RefUnwindSafe,
impl<A> Send for Wrapper<A>where
A: Send,
impl<A> Sync for Wrapper<A>where
A: Sync,
impl<A> Unpin for Wrapper<A>where
A: Unpin,
impl<A> UnwindSafe for Wrapper<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