Skip to main content

ConfigParser

Trait ConfigParser 

Source
pub trait ConfigParser {
    type Error: Debug;

    // Required methods
    fn parse(
        &self,
        input: &str,
    ) -> Result<(NetworkConfig, ConversionReport), Self::Error>;
    fn vendor_name(&self) -> &str;
}
Expand description

Парсер: текст конфига → IR + частичный репорт (что не распознано)

Required Associated Types§

Required Methods§

Source

fn parse( &self, input: &str, ) -> Result<(NetworkConfig, ConversionReport), Self::Error>

Source

fn vendor_name(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§