pub fn from_flat_props(props: &'a Vec<String>) -> PropertySet<'a> {
        let mut result = PropertySet {
            properties: HashMap::new(),
        };

        // parse and pack props
        for prop_flat in props {
            match PropertySet::parse_flat_prop(prop_flat) {
                Ok((prop_name, prop_value)) => {
                    result.properties.insert(prop_name, prop_value);
                }
                Err(_error) => {
                    // do nothing??? ignore the faulty property
                    println!("Error: {:?}", _error);
                }
            }
        }

        result
    }
// Create PropertySet from vector of properties expressed in flat form (ie. by parsing)
Create PropertySet from vector of properties expressed in flat form
Create PropertySet from vector of properties expressed in flat form
pub fn from_flat_props(props: &'a Vec<String>) -> PropertySet<'a> {
        let mut result = PropertySet {
            properties: HashMap::new(),
        };
        // parse and pack props
        for prop_flat in props {
            match PropertySet::parse_flat_prop(prop_flat) {
                Ok((prop_name, prop_value)) => {
                    result.properties.insert(prop_name, prop_value);
                }
                Err(_error) => {
                    // do nothing??? ignore the faulty property
                    println!("Error: {:?}", _error);
                }
            }
        }
        result
    }
pub fn from_flat_props ( props : & ' a Vec < String > ) -> PropertySet < ' a > { let mut result = PropertySet { properties : HashMap :: new ( ) , } ; // parse and pack props for prop_flat in props { match PropertySet :: parse_flat_prop ( prop_flat ) { Ok ( ( prop_name , prop_value ) ) => { result . properties . insert ( prop_name , prop_value ) ; } Err ( _error ) => { // do nothing??? ignore the faulty property println ! ( " " _error ) ; } } } result }
Create PropertySet from vector of properties expressed in flat form (ie.
Create PropertySet from vector of properties expressed in flat form ( ie .
props
&'a Vec<String>
props
&'a Vec<String>