Struct refraction::terminal::FromUnit [] [src]

pub struct FromUnit<A, B> { /* fields omitted */ }

A Prism to "inject" anything into ().

Methods

impl<A, B> FromUnit<A, B>
[src]

Trait Implementations

impl<A, B> Debug for FromUnit<A, B>
[src]

Formats the value using the given formatter.

impl<A, B> Clone for FromUnit<A, B>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A, B> Copy for FromUnit<A, B>
[src]

impl<A, B> Default for FromUnit<A, B>
[src]

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

impl<A, B> Lenticuloid for FromUnit<A, B>
[src]

impl<A, B> PartialLens for FromUnit<A, 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<A, B> Prism for FromUnit<A, B>
[src]