Struct im::lens::GeneralLens [] [src]

pub struct GeneralLens<From, To> { /* fields omitted */ }

An arbitrary non-partial lens defined by a pair of get and put functions.

Methods

impl<From, To> GeneralLens<From, To>
[src]

Construct a lens from From to To from a pair of get and put functions.

Trait Implementations

impl<From, To> Clone for GeneralLens<From, To>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A, B> PartialLens for GeneralLens<A, B>
[src]

Get the focus of the lens, if available.

Put a value into the lens, returning the updated From value if the operation succeeded. Read more

Compose this lens with a lens from To to a new type Next, yielding a lens from From to Next. Read more

impl<A, B> Lens for GeneralLens<A, B>
[src]

Get the focus of the lens.

Put a value into the lens, returning the updated From value.

Compose this lens with a lens from To to a new type Next, yielding a lens from From to Next. Read more