pub enum LensKind {
View,
Editor,
Inspector,
Overlay,
Action,
}Expand description
The role a lens plays. A lens of a given kind is only considered when a pane
asks for that kind (a pane showing a value asks for View; an editing pane
asks for Editor).
Variants§
View
Encodes a value into a Scene for display.
Editor
Decodes Intents into checked operations.
Inspector
A read-only detail panel over a value.
Overlay
A floating layer (tooltip, popover, confirmation sheet).
Action
A single invokable action surfaced as a control.
Trait Implementations§
impl Copy for LensKind
impl Eq for LensKind
impl StructuralPartialEq for LensKind
Auto Trait Implementations§
impl Freeze for LensKind
impl RefUnwindSafe for LensKind
impl Send for LensKind
impl Sync for LensKind
impl Unpin for LensKind
impl UnsafeUnpin for LensKind
impl UnwindSafe for LensKind
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