pub fn parse(config: &str) -> Result<Config, ParseError> {
    // TODO Descriptive errors
    match conf(&config.as_bytes()[..]) {
        Done(_, c) => Ok(c),
        _          => Err(0)
    }
}
/// Parses a configuration from a `&str`.
/// An error is returned in case of syntax error.
Parses a configuration from a `&str`.
An error is returned in case of syntax error.
Parses a configuration from a ` &str ` . An error is returned in case of syntax error .
pub fn parse(config: &str) -> Result<Config, ParseError> {
    // TODO Descriptive errors
    match conf(&config.as_bytes()[..]) {
        Done(_, c) => Ok(c),
        _          => Err(0)
    }
}
pub fn parse ( config : & str ) -> Result < Config , ParseError > { // TODO Descriptive errors match conf ( & config . as_bytes ( ) [ .. ] ) { Done ( _ , c ) => Ok ( c ) , _ => Err ( 0 ) } }
Parses a configuration from a `&str`.
Parses a configuration from a ` &str ` .
config
&str
config
&str