[][src]Struct frunk_laws::wrapper::Wrapper

pub struct Wrapper<A>(_);

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

impl<A: PartialOrd> PartialOrd<Wrapper<A>> for Wrapper<A>[src]

impl<A: Eq> Eq for Wrapper<A>[src]

impl<A: PartialEq> PartialEq<Wrapper<A>> for Wrapper<A>[src]

impl<A: Clone> Clone for Wrapper<A>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<A: Debug> Debug for Wrapper<A>[src]

impl<A: Hash> Hash for Wrapper<A>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<A: Monoid> Monoid for Wrapper<A>[src]

impl<A: Semigroup> Semigroup for Wrapper<A>[src]

impl<A: Arbitrary + Ord + Clone> Arbitrary for Wrapper<Max<A>>[src]

fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>[src]

impl<A: Arbitrary + Ord + Clone> Arbitrary for Wrapper<Min<A>>[src]

fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>[src]

impl<A: Arbitrary> Arbitrary for Wrapper<All<A>>[src]

fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>[src]

impl<A: Arbitrary> Arbitrary for Wrapper<Any<A>>[src]

fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>[src]

impl<A: Arbitrary> Arbitrary for Wrapper<Product<A>>[src]

fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>[src]

Auto Trait Implementations

impl<A> Send for Wrapper<A> where
    A: Send

impl<A> Sync for Wrapper<A> where
    A: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Source> Sculptor for Source

type Remainder = Source

impl<T, U, I> LiftInto for T where
    U: LiftFrom<T, I>, 

impl<Choices> CoproductSubsetter for Choices

type Remainder = Choices