pub struct SplashEntry {
pub key: char,
pub label: String,
pub action: Action,
}Expand description
A menu entry — a key, what it does in words, and the typed action it
dispatches. The action is already RESOLVED: the authoring layer turns
:action "quit" into Action::Quit before it reaches here, so the
runtime dispatches a menu entry through the same path a keybinding
takes, and an entry can never be a string the editor cannot honour.
Fields§
§key: char§label: String§action: ActionTrait Implementations§
Source§impl Clone for SplashEntry
impl Clone for SplashEntry
Source§fn clone(&self) -> SplashEntry
fn clone(&self) -> SplashEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SplashEntry
impl Debug for SplashEntry
impl Eq for SplashEntry
Source§impl PartialEq for SplashEntry
impl PartialEq for SplashEntry
impl StructuralPartialEq for SplashEntry
Auto Trait Implementations§
impl Freeze for SplashEntry
impl RefUnwindSafe for SplashEntry
impl Send for SplashEntry
impl Sync for SplashEntry
impl Unpin for SplashEntry
impl UnsafeUnpin for SplashEntry
impl UnwindSafe for SplashEntry
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