pub struct Lens<S, A> { /* private fields */ }Expand description
A lawful lens focusing on field A inside structure S.
Implementations§
Auto Trait Implementations§
impl<S, A> Freeze for Lens<S, A>
impl<S, A> !RefUnwindSafe for Lens<S, A>
impl<S, A> !Send for Lens<S, A>
impl<S, A> !Sync for Lens<S, A>
impl<S, A> Unpin for Lens<S, A>
impl<S, A> UnsafeUnpin for Lens<S, A>
impl<S, A> !UnwindSafe for Lens<S, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more