pub enum RichCommand {
Undo,
Redo,
Bold,
Italic,
Code,
ContinueLine,
Indent,
Outdent,
}Variants§
Implementations§
Source§impl RichCommand
impl RichCommand
Sourcepub fn input_key(input: KeyboardInput<'_>) -> Option<Self>
pub fn input_key(input: KeyboardInput<'_>) -> Option<Self>
Opt-in formatting and Markdown source shortcuts. Ordinary inputs keep their native key behavior when no RichCommand interest is registered.
pub fn source_only(self) -> bool
Trait Implementations§
Source§impl Clone for RichCommand
impl Clone for RichCommand
impl Copy for RichCommand
Source§impl Debug for RichCommand
impl Debug for RichCommand
impl Eq for RichCommand
Source§impl PartialEq for RichCommand
impl PartialEq for RichCommand
impl StructuralPartialEq for RichCommand
Auto Trait Implementations§
impl Forget for RichCommand
impl Freeze for RichCommand
impl Move for RichCommand
impl RefUnwindSafe for RichCommand
impl Send for RichCommand
impl Sync for RichCommand
impl Unpin for RichCommand
impl UnsafeUnpin for RichCommand
impl UnwindSafe for RichCommand
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