Skip to main content

Visitor

Trait Visitor 

Source
pub trait Visitor {
    type Parsed;

    const WANTS_KNOWN: bool = false;

    // Provided methods
    fn start_line(&mut self, parsed: &Self::Parsed, raw: &[u8]) -> Result<()> { ... }
    fn known(&mut self, key: Known, value: &[u8]) -> Result<()> { ... }
    fn unknown(&mut self, name: &[u8], value: &[u8]) -> Result<()> { ... }
}

Provided Associated Constants§

Source

const WANTS_KNOWN: bool = false

Required Associated Types§

Provided Methods§

Source

fn start_line(&mut self, parsed: &Self::Parsed, raw: &[u8]) -> Result<()>

Source

fn known(&mut self, key: Known, value: &[u8]) -> Result<()>

Source

fn unknown(&mut self, name: &[u8], value: &[u8]) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Visitor for ()

Implementors§