pub fn canonical(&self, key: &str) -> Result<String> {
        let mut key = key.to_string();
        ucd_util::symbolic_name_normalize(&mut key);
        match self.0.get(&key).map(|v| &**v) {
            Some(v) => Ok(v.to_string()),
            None => err!("unrecognized property: {:?}", key),
        }
    }
/// Return the "canonical" or "long" property name for the given property
/// name. If no such property exists, return an error.
Return the "canonical" or "long" property name for the given property
name. If no such property exists, return an error.
Return the " canonical " or " long " property name for the given property name . If no such property exists return an error .
pub fn canonical(&self, key: &str) -> Result<String> {
        let mut key = key.to_string();
        ucd_util::symbolic_name_normalize(&mut key);
        match self.0.get(&key).map(|v| &**v) {
            Some(v) => Ok(v.to_string()),
            None => err!("unrecognized property: {:?}", key),
        }
    }
pub fn canonical ( & self , key : & str ) -> Result < String > { let mut key = key . to_string ( ) ; ucd_util :: symbolic_name_normalize ( & mut key ) ; match self . 0 . get ( & key ) . map ( | v | & * * v ) { Some ( v ) => Ok ( v . to_string ( ) ) , None => err ! ( " " key ) , } }
Return the "canonical" or "long" property name for the given property
name.
Return the " canonical " or " long " property name for the given property name .
&self
key
&str
&self
key
&str