Skip to main content

EditTargetParser

Trait EditTargetParser 

Source
pub trait EditTargetParser {
    type Output;

    // Required methods
    fn edit_target_invalid<T: Display>(&self, msg: T) -> Self::Output;
    fn visit_boundary(
        &mut self,
        range: &[ActionToken<'_>],
        inclusive: &[ActionToken<'_>],
        terminus: &[ActionToken<'_>],
        count: &[ActionToken<'_>],
    ) -> Self::Output;
    fn visit_current_position(&mut self) -> Self::Output;
    fn visit_char_jump(&mut self, mark: &[ActionToken<'_>]) -> Self::Output;
    fn visit_line_jump(&mut self, mark: &[ActionToken<'_>]) -> Self::Output;
    fn visit_motion(
        &mut self,
        motion: &[ActionToken<'_>],
        count: &[ActionToken<'_>],
    ) -> Self::Output;
    fn visit_range(
        &mut self,
        range: &[ActionToken<'_>],
        inclusive: &[ActionToken<'_>],
        count: &[ActionToken<'_>],
    ) -> Self::Output;
    fn visit_search(
        &mut self,
        search: &[ActionToken<'_>],
        dir: &[ActionToken<'_>],
        count: &[ActionToken<'_>],
    ) -> Self::Output;
    fn visit_selection(&mut self) -> Self::Output;
}
Expand description

Parse a series of ActionTokens into editor_types::prelude::EditTarget.

Required Associated Types§

Required Methods§

Source

fn edit_target_invalid<T: Display>(&self, msg: T) -> Self::Output

Output an error for the current parse.

Source

fn visit_boundary( &mut self, range: &[ActionToken<'_>], inclusive: &[ActionToken<'_>], terminus: &[ActionToken<'_>], count: &[ActionToken<'_>], ) -> Self::Output

Source

fn visit_current_position(&mut self) -> Self::Output

Source

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

Source

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

Source

fn visit_motion( &mut self, motion: &[ActionToken<'_>], count: &[ActionToken<'_>], ) -> Self::Output

Source

fn visit_range( &mut self, range: &[ActionToken<'_>], inclusive: &[ActionToken<'_>], count: &[ActionToken<'_>], ) -> Self::Output

Source

fn visit_selection(&mut self) -> Self::Output

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§