pub trait KeyInputExt<This>where
This: NavigationStateAlg + QueueCatalogAlg + QueueAppendAlg + QueueRemoveAlg + QueuePauseAlg + QueueDuplicateAlg + QueueFormatEditAlg + FormatCatalogStateAlg + QueueDryRunAlg + RehearsalStateAlg + TransferStateAlg + DetailSelectionAlg + DraftStateAlg + OutputDraftAlg + InputDraftAlg + QueueOutputAlg + QueueSourceAlg + SourceMetadataAlg + TextEditorStateAlg + ManagerStatusAlg + SafeExitAlg + SourceRequestAlg + SubmissionAlg + MediaOptionsAlg + OutputChoiceAlg,
This::Entry: QueueEntryAlg + RequestOptionsAlg,
This::Id: Copy + Eq,{
// Required methods
fn apply_keystroke(&mut self, stroke: Keystroke) -> bool;
fn apply_paste(&mut self, text: &str) -> bool;
fn apply_binding(&mut self, binding: ManagerKeyBinding<This>) -> bool;
}Expand description
Interprets input as the intentions it denotes.
Required Methods§
Sourcefn apply_keystroke(&mut self, stroke: Keystroke) -> bool
fn apply_keystroke(&mut self, stroke: Keystroke) -> bool
Applies what one keystroke denotes, and observes whether it denoted anything.
A gated binding applies only while its action has meaning, so a disabled menu entry and a pressed key refuse the same intention.
Sourcefn apply_paste(&mut self, text: &str) -> bool
fn apply_paste(&mut self, text: &str) -> bool
Applies what pasted text denotes, and observes whether it denoted anything.
Sourcefn apply_binding(&mut self, binding: ManagerKeyBinding<This>) -> bool
fn apply_binding(&mut self, binding: ManagerKeyBinding<This>) -> bool
Applies one binding while the action gating it has meaning.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<This> KeyInputExt<This> for Thiswhere
This: NavigationStateAlg + QueueCatalogAlg + QueueAppendAlg + QueueRemoveAlg + QueuePauseAlg + QueueDuplicateAlg + QueueFormatEditAlg + FormatCatalogStateAlg + QueueDryRunAlg + RehearsalStateAlg + TransferStateAlg + DetailSelectionAlg + DraftStateAlg + OutputDraftAlg + InputDraftAlg + QueueOutputAlg + QueueSourceAlg + SourceMetadataAlg + TextEditorStateAlg + ManagerStatusAlg + SafeExitAlg + SourceRequestAlg + SubmissionAlg + MediaOptionsAlg + OutputChoiceAlg,
This::Entry: QueueEntryAlg + RequestOptionsAlg,
This::Id: Copy + Eq,
Interprets input as the intentions it denotes.