pub struct Setter<S, T, A, B> { /* private fields */ }Expand description
A modify-only optic. Always uses boxed closures since setters are typically derived from composition or conversion.
S — source, T — modified source, A — focus, B — replacement.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S, T, A, B> Freeze for Setter<S, T, A, B>
impl<S, T, A, B> !RefUnwindSafe for Setter<S, T, A, B>
impl<S, T, A, B> !Send for Setter<S, T, A, B>
impl<S, T, A, B> !Sync for Setter<S, T, A, B>
impl<S, T, A, B> Unpin for Setter<S, T, A, B>
impl<S, T, A, B> UnsafeUnpin for Setter<S, T, A, B>
impl<S, T, A, B> !UnwindSafe for Setter<S, T, A, B>
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