Skip to main content

ActionParser

Trait ActionParser 

Source
pub trait ActionParser {
    type Output;
    type Span;

Show 60 methods // Required methods fn fail<T: Display>(&self, msg: T, span: Self::Span) -> Self::Output; fn visit_keyword_lookup( &mut self, target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_noop(&mut self, span: Self::Span) -> Self::Output; fn visit_redraw_screen(&mut self, span: Self::Span) -> Self::Output; fn visit_suspend(&mut self, span: Self::Span) -> Self::Output; fn visit_cmdbar_focus( &mut self, prompt: &[ActionToken<'_>], cmdtype: &[ActionToken<'_>], action: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_cmdbar_unfocus(&mut self, span: Self::Span) -> Self::Output; fn visit_command_execute( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_command_run( &mut self, input: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_complete( &mut self, style: &[ActionToken<'_>], comptype: &[ActionToken<'_>], display: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_edit( &mut self, action: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_history_checkpoint(&mut self, span: Self::Span) -> Self::Output; fn visit_history_undo( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_history_redo( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_macro_execute( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_macro_run( &mut self, input: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_macro_repeat( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_macro_toggle_recording(&mut self, span: Self::Span) -> Self::Output; fn visit_prompt_abort(&mut self, span: Self::Span) -> Self::Output; fn visit_prompt_recall( &mut self, filter: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_prompt_submit(&mut self, span: Self::Span) -> Self::Output; fn visit_mark( &mut self, mark: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_cursor_close( &mut self, target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_cursor_restore( &mut self, style: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_cursor_rotate( &mut self, dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_cursor_save( &mut self, style: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_cursor_split( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_tab_close( &mut self, target: &[ActionToken<'_>], flags: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_tab_extract( &mut self, fc: &[ActionToken<'_>], dir: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_tab_open( &mut self, target: &[ActionToken<'_>], fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_tab_focus( &mut self, fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_tab_move( &mut self, fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_close( &mut self, target: &[ActionToken<'_>], falgs: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_open( &mut self, target: &[ActionToken<'_>], axis: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_resize( &mut self, fc: &[ActionToken<'_>], axis: &[ActionToken<'_>], size: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_split( &mut self, target: &[ActionToken<'_>], axis: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_switch( &mut self, input: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_write( &mut self, target: &[ActionToken<'_>], flags: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_exchange( &mut self, fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_focus( &mut self, fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_move_side( &mut self, dir: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_rotate( &mut self, dir: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_window_clear_sizes(&mut self, span: Self::Span) -> Self::Output; fn visit_window_zoom_toggle(&mut self, span: Self::Span) -> Self::Output; fn visit_insert_open_line( &mut self, shape: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_insert_transcribe( &mut self, input: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_insert_type( &mut self, c: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_insert_paste( &mut self, style: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_jump( &mut self, list: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_repeat( &mut self, style: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_scroll( &mut self, style: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_search( &mut self, dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_selection_duplicate( &mut self, dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_selection_join(&mut self, span: Self::Span) -> Self::Output; fn visit_selection_cursor_set( &mut self, change: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_selection_expand( &mut self, boundary: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_selection_filter( &mut self, drop: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_selection_resize( &mut self, style: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_selection_split( &mut self, style: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output; fn visit_selection_trim( &mut self, boundary: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn fail<T: Display>(&self, msg: T, span: Self::Span) -> Self::Output

Output an error for the current parse.

Source

fn visit_keyword_lookup( &mut self, target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse keyword-lookup.

Source

fn visit_noop(&mut self, span: Self::Span) -> Self::Output

Parse noop.

Source

fn visit_redraw_screen(&mut self, span: Self::Span) -> Self::Output

Parse redraw-screen.

Source

fn visit_suspend(&mut self, span: Self::Span) -> Self::Output

Parse suspend.

Source

fn visit_cmdbar_focus( &mut self, prompt: &[ActionToken<'_>], cmdtype: &[ActionToken<'_>], action: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse cmdbar focus.

Source

fn visit_cmdbar_unfocus(&mut self, span: Self::Span) -> Self::Output

Parse cmdbar unfocus.

Source

fn visit_command_execute( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse cmd execute and its arguments.

Source

fn visit_command_run( &mut self, input: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse cmd run and its arguments.

Source

fn visit_complete( &mut self, style: &[ActionToken<'_>], comptype: &[ActionToken<'_>], display: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse complete and its arguments.

Source

fn visit_edit( &mut self, action: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse edit.

Source

fn visit_history_checkpoint(&mut self, span: Self::Span) -> Self::Output

Parse history checkpoint.

Source

fn visit_history_undo( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse history undo and its arguments.

Source

fn visit_history_redo( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse history redo and its arguments.

Source

fn visit_macro_execute( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse macro execute and its arguments.

Source

fn visit_macro_run( &mut self, input: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse macro run and its arguments.

Source

fn visit_macro_repeat( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse macro repeat and its arguments.

Source

fn visit_macro_toggle_recording(&mut self, span: Self::Span) -> Self::Output

Parse macro toggle-recording.

Source

fn visit_prompt_abort(&mut self, span: Self::Span) -> Self::Output

Parse prompt abort and its arguments.

Source

fn visit_prompt_recall( &mut self, filter: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse prompt recall and its arguments.

Source

fn visit_prompt_submit(&mut self, span: Self::Span) -> Self::Output

Parse prompt submit.

Source

fn visit_mark( &mut self, mark: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse mark and its arguments.

Source

fn visit_cursor_close( &mut self, target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse cursor close and its arguments.

Source

fn visit_cursor_restore( &mut self, style: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse cursor restore and its arguments.

Source

fn visit_cursor_rotate( &mut self, dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse cursor rotate and its arguments.

Source

fn visit_cursor_save( &mut self, style: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse cursor save and its arguments.

Source

fn visit_cursor_split( &mut self, count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse cursor split and its arguments.

Source

fn visit_tab_close( &mut self, target: &[ActionToken<'_>], flags: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse tab close and its arguments.

Source

fn visit_tab_extract( &mut self, fc: &[ActionToken<'_>], dir: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse tab extract and its arguments.

Source

fn visit_tab_open( &mut self, target: &[ActionToken<'_>], fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse tab open and its arguments.

Source

fn visit_tab_focus( &mut self, fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse tab focus and its arguments.

Source

fn visit_tab_move( &mut self, fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse tab move and its arguments.

Source

fn visit_window_close( &mut self, target: &[ActionToken<'_>], falgs: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window close and its arguments.

Source

fn visit_window_open( &mut self, target: &[ActionToken<'_>], axis: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window open and its arguments.

Source

fn visit_window_resize( &mut self, fc: &[ActionToken<'_>], axis: &[ActionToken<'_>], size: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window resize and its arguments.

Source

fn visit_window_split( &mut self, target: &[ActionToken<'_>], axis: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window split and its arguments.

Source

fn visit_window_switch( &mut self, input: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window switch and its arguments.

Source

fn visit_window_write( &mut self, target: &[ActionToken<'_>], flags: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window write and its arguments.

Source

fn visit_window_exchange( &mut self, fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window exchange and its arguments.

Source

fn visit_window_focus( &mut self, fc: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window focus and its arguments.

Source

fn visit_window_move_side( &mut self, dir: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window move-side and its arguments.

Source

fn visit_window_rotate( &mut self, dir: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse window rotate and its arguments.

Source

fn visit_window_clear_sizes(&mut self, span: Self::Span) -> Self::Output

Parse window clear-sizes and its arguments.

Source

fn visit_window_zoom_toggle(&mut self, span: Self::Span) -> Self::Output

Parse window zoom-toggle and its arguments.

Source

fn visit_insert_open_line( &mut self, shape: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse insert open-line and its arguments.

Source

fn visit_insert_transcribe( &mut self, input: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse insert transcribe and its arguments.

Source

fn visit_insert_type( &mut self, c: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse insert type and its arguments.

Source

fn visit_insert_paste( &mut self, style: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse insert paste and its arguments.

Source

fn visit_jump( &mut self, list: &[ActionToken<'_>], dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse jump and its arguments.

Source

fn visit_repeat( &mut self, style: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse repeat and its arguments.

Source

fn visit_scroll( &mut self, style: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse scroll and its arguments.

Parse search and its arguments.

Source

fn visit_selection_duplicate( &mut self, dir: &[ActionToken<'_>], count: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse selection duplicate and its arguments.

Source

fn visit_selection_join(&mut self, span: Self::Span) -> Self::Output

Parse selection join and its arguments.

Source

fn visit_selection_cursor_set( &mut self, change: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse selection cursor-set and its arguments.

Source

fn visit_selection_expand( &mut self, boundary: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse selection expand and its arguments.

Source

fn visit_selection_filter( &mut self, drop: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse selection filter and its arguments.

Source

fn visit_selection_resize( &mut self, style: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse selection resize and its arguments.

Source

fn visit_selection_split( &mut self, style: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse selection split and its arguments.

Source

fn visit_selection_trim( &mut self, boundary: &[ActionToken<'_>], target: &[ActionToken<'_>], span: Self::Span, ) -> Self::Output

Parse selection trim and its arguments.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§