pub enum When {
Auto,
Always,
NotEditing,
}Expand description
When a binding fires.
Variants§
Auto
Unless a text input (or a hosted native view, such as a web view)
has the keyboard focus and the keystroke is one it uses
(Keystroke::edits_text): the default.
Always
Wherever the keyboard focus is, in text inputs too.
NotEditing
Only while no text input or hosted native view has the keyboard focus.
Trait Implementations§
impl Copy for When
impl Eq for When
impl StructuralPartialEq for When
Auto Trait Implementations§
impl Forget for When
impl Freeze for When
impl Move for When
impl RefUnwindSafe for When
impl Send for When
impl Sync for When
impl Unpin for When
impl UnsafeUnpin for When
impl UnwindSafe for When
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