Trait miau::format::Format[][src]

pub trait Format {
    fn transform(
        &self,
        input: Vec<u8>
    ) -> Result<ConfigurationTree, ConfigurationError>;
fn describe(&self) -> String; }

Represents data format

Required methods

fn transform(
    &self,
    input: Vec<u8>
) -> Result<ConfigurationTree, ConfigurationError>
[src]

Transforms raw data into ConfigurationTree

fn describe(&self) -> String[src]

Describes this Format.

Loading content...

Implementors

impl<T> Format for T where
    T: Fn(Vec<u8>) -> Result<ConfigurationTree, ConfigurationError>, 
[src]

Loading content...