Struct refraction::Identity [] [src]

pub struct Identity<S, T> { /* fields omitted */ }

The identity lenticuloid.

Methods

impl<S, T> Identity<S, T>
[src]

Trait Implementations

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

impl<S, T> Prism for Identity<S, T>
[src]

impl<S, T> Iso for Identity<S, T>
[src]

impl<S, T> Debug for Identity<S, T>
[src]

Formats the value using the given formatter.

impl<S, T> Clone for Identity<S, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S, T> Copy for Identity<S, T>
[src]

impl<S, T> Default for Identity<S, T>
[src]

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

impl<S, T> Lenticuloid for Identity<S, T>
[src]