[−][src]Struct frunk_laws::wrapper::Wrapper
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]
fn partial_cmp(&self, other: &Wrapper<A>) -> Option<Ordering>
[src]
fn lt(&self, other: &Wrapper<A>) -> bool
[src]
fn le(&self, other: &Wrapper<A>) -> bool
[src]
fn gt(&self, other: &Wrapper<A>) -> bool
[src]
fn ge(&self, other: &Wrapper<A>) -> bool
[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(&self) -> 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<__HA: Hasher>(&self, state: &mut __HA)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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 arbitrary<G: Gen>(g: &mut G) -> Self
[src]
fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>
[src]
impl<A: Arbitrary + Ord + Clone> Arbitrary for Wrapper<Min<A>>
[src]
fn arbitrary<G: Gen>(g: &mut G) -> Self
[src]
fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>
[src]
impl<A: Arbitrary> Arbitrary for Wrapper<All<A>>
[src]
fn arbitrary<G: Gen>(g: &mut G) -> Self
[src]
fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>
[src]
impl<A: Arbitrary> Arbitrary for Wrapper<Any<A>>
[src]
fn arbitrary<G: Gen>(g: &mut G) -> Self
[src]
fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static>
[src]
impl<A: Arbitrary> Arbitrary for Wrapper<Product<A>>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Source> Sculptor for Source
impl<T, U, I> LiftInto for T where
U: LiftFrom<T, I>,
U: LiftFrom<T, I>,