pub trait RangeParser {
type Output;
// Required methods
fn range_invalid<T: Display>(&self, msg: T) -> Self::Output;
fn visit_word(&mut self, style: &[ActionToken<'_>]) -> Self::Output;
fn visit_buffer(&mut self) -> Self::Output;
fn visit_paragraph(&mut self) -> Self::Output;
fn visit_sentence(&mut self) -> Self::Output;
fn visit_line(&mut self) -> Self::Output;
fn visit_bracketed(
&mut self,
left: &[ActionToken<'_>],
right: &[ActionToken<'_>],
) -> Self::Output;
fn visit_item(&mut self) -> Self::Output;
fn visit_quote(&mut self, surround: &[ActionToken<'_>]) -> Self::Output;
fn visit_xml_tag(&mut self) -> Self::Output;
}Expand description
Parse a series of ActionTokens into editor_types::prelude::RangeType.
Required Associated Types§
Required Methods§
Sourcefn range_invalid<T: Display>(&self, msg: T) -> Self::Output
fn range_invalid<T: Display>(&self, msg: T) -> Self::Output
Output an error for the current parse.
fn visit_word(&mut self, style: &[ActionToken<'_>]) -> Self::Output
fn visit_buffer(&mut self) -> Self::Output
fn visit_paragraph(&mut self) -> Self::Output
fn visit_sentence(&mut self) -> Self::Output
fn visit_line(&mut self) -> Self::Output
fn visit_bracketed( &mut self, left: &[ActionToken<'_>], right: &[ActionToken<'_>], ) -> Self::Output
fn visit_item(&mut self) -> Self::Output
fn visit_quote(&mut self, surround: &[ActionToken<'_>]) -> Self::Output
fn visit_xml_tag(&mut self) -> Self::Output
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".