Struct refraction::conv::Conv [] [src]

pub struct Conv<S, A = S, T = S, B = A> { /* fields omitted */ }

An isomorphism family that handles lossless conversions by owned value.

Methods

impl<S, A, T, B> Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]

Trait Implementations

impl<S, A, T, B> Debug for Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]

Formats the value using the given formatter.

impl<S, A, T, B> Clone for Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S, A, T, B> Copy for Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]

impl<S, A, T, B> Default for Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]

Returns the "default value" for a type. Read more

impl<S, A, T, B> Lenticuloid for Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]

impl<S, A, T, B> PartialLens for Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]

This signature is somewhat hacky; it awaits resolution of the FnBox issue for better design. Notably, the injection function returned by this method will (if law-abiding) only return Some exactly once; every time afterwards, it will return None. Read more

impl<S, A, T, B> Lens for Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]

impl<S, A, T, B> Prism for Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]

impl<S, A, T, B> Iso for Conv<S, A, T, B> where
    S: Into<A>,
    A: Into<S>,
    B: Into<T>,
    T: Into<B>, 
[src]