pub struct Prism<S, A> { /* private fields */ }Expand description
A prism focusing on one variant of a sum type.
Implementations§
Auto Trait Implementations§
impl<S, A> Freeze for Prism<S, A>
impl<S, A> !RefUnwindSafe for Prism<S, A>
impl<S, A> !Send for Prism<S, A>
impl<S, A> !Sync for Prism<S, A>
impl<S, A> Unpin for Prism<S, A>
impl<S, A> UnsafeUnpin for Prism<S, A>
impl<S, A> !UnwindSafe for Prism<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