fn parse_flat_prop(prop_flat: &'a str) -> Result<(&'a str, Property<'a>), ParseError> {
        // Parse the property string to extract: property name and property value(s) - also detecting the property types
        match prop_parser::parse_prop_def(prop_flat) {
            Ok((name, value)) => match value {
                Some(val) => match PropertyValue::from_value(val) {
                    Ok(prop_value) => {
                        Ok((name, Property::Explicit(name, prop_value, HashMap::new())))
                    }
                    Err(error) => Err(error),
                },
                None => Ok((name, Property::Implicit(name))),
            },
            Err(error) => Err(ParseError::new(&format!("Parsing error: {}", error))),
        }
    }
// Parsing of property values/types
Parsing of property values/types
Parsing of property values / types
fn parse_flat_prop(prop_flat: &'a str) -> Result<(&'a str, Property<'a>), ParseError> {
        // Parse the property string to extract: property name and property value(s) - also detecting the property types
        match prop_parser::parse_prop_def(prop_flat) {
            Ok((name, value)) => match value {
                Some(val) => match PropertyValue::from_value(val) {
                    Ok(prop_value) => {
                        Ok((name, Property::Explicit(name, prop_value, HashMap::new())))
                    }
                    Err(error) => Err(error),
                },
                None => Ok((name, Property::Implicit(name))),
            },
            Err(error) => Err(ParseError::new(&format!("Parsing error: {}", error))),
        }
    }
fn parse_flat_prop ( prop_flat : & ' a str ) -> Result < ( & ' a str , Property < ' a > ) , ParseError > { // Parse the property string to extract: property name and property value(s) - also detecting the property types match prop_parser :: parse_prop_def ( prop_flat ) { Ok ( ( name , value ) ) => match value { Some ( val ) => match PropertyValue :: from_value ( val ) { Ok ( prop_value ) => { Ok ( ( name , Property :: Explicit ( name , prop_value , HashMap :: new ( ) ) ) ) } Err ( error ) => Err ( error ) , } , None => Ok ( ( name , Property :: Implicit ( name ) ) ) , } , Err ( error ) => Err ( ParseError :: new ( & format ! ( " " error ) ) ) , } }
Parsing of property values/types
Parsing of property values / types
prop_flat
&'a str
prop_flat
&'a str