Trait r::parser::LocalizedParser

source ·
pub trait LocalizedParser: Sync {
    // Required methods
    fn parse_input_with(
        &self,
        input: &str,
        config: &SessionParserConfig,
    ) -> ParseResult;
    fn parse_highlight_with(
        &self,
        input: &str,
        config: &SessionParserConfig,
    ) -> HighlightResult;

    // Provided methods
    fn parse_input(&self, input: &str) -> ParseResult { ... }
    fn parse_highlight(&self, input: &str) -> HighlightResult { ... }
}

Required Methods§

Provided Methods§

source

fn parse_input(&self, input: &str) -> ParseResult

source

fn parse_highlight(&self, input: &str) -> HighlightResult

Implementors§

source§

impl LocalizedParser for Localization

source§

impl LocalizedParser for SessionParserConfig

source§

impl LocalizedParser for r::parser::de::Parser

source§

impl LocalizedParser for r::parser::emoji::Parser

source§

impl LocalizedParser for r::parser::en::Parser

source§

impl LocalizedParser for r::parser::es::Parser

source§

impl LocalizedParser for r::parser::pirate::Parser

source§

impl LocalizedParser for r::parser::zh::Parser