pub struct Lens {
pub meta: LensMeta,
pub view: Option<Arc<dyn View>>,
pub editor: Option<Arc<dyn Editor>>,
}Expand description
A registered lens: its metadata plus optional view and editor objects.
Fields§
§meta: LensMetaThe lens metadata the dispatcher reads.
view: Option<Arc<dyn View>>The view encoder, if this lens renders.
editor: Option<Arc<dyn Editor>>The editor decoder, if this lens edits.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Lens
impl !UnwindSafe for Lens
impl Freeze for Lens
impl Send for Lens
impl Sync for Lens
impl Unpin for Lens
impl UnsafeUnpin for Lens
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