Struct refraction::terminal::ToUnit [] [src]

pub struct ToUnit<S> { /* fields omitted */ }

A Lens to "extract" () from anything.

Methods

impl<S> ToUnit<S>
[src]

Trait Implementations

impl<S> Debug for ToUnit<S>
[src]

Formats the value using the given formatter.

impl<S> Clone for ToUnit<S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S> Copy for ToUnit<S>
[src]

impl<S> Default for ToUnit<S>
[src]

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

impl<S> Lenticuloid for ToUnit<S>
[src]

impl<S> PartialLens for ToUnit<S>
[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> Lens for ToUnit<S>
[src]