pub struct Intent(pub &'static str);Expand description
What a keystroke means, named rather than implemented: Intent("save").
A string rather than a type, because the whole point is that the widget binding the key and the widget answering it need not know about one another — and a name reads in a dump, which a type id does not.
Tuple Fields§
§0: &'static strTrait Implementations§
impl Copy for Intent
impl Eq for Intent
impl StructuralPartialEq for Intent
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnsafeUnpin for Intent
impl UnwindSafe for Intent
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