fn manufacturer(&self, id: &str) -> Option<String> {
        let path_elems: Vec<&str> = id.split(ID_SEPARATOR).collect();
        if path_elems.len() > 1 {
            Some(path_elems[0].to_string())
        } else {
            None
        }
    }
// Get manufacturer from specified component ID
Get manufacturer from specified component ID
Get manufacturer from specified component ID
fn manufacturer(&self, id: &str) -> Option<String> {
        let path_elems: Vec<&str> = id.split(ID_SEPARATOR).collect();
        if path_elems.len() > 1 {
            Some(path_elems[0].to_string())
        } else {
            None
        }
    }
fn manufacturer ( & self , id : & str ) -> Option < String > { let path_elems : Vec < & str > = id . split ( ID_SEPARATOR ) . collect ( ) ; if path_elems . len ( ) > 1 { Some ( path_elems [ 0 ] . to_string ( ) ) } else { None } }
Get manufacturer from specified component ID
Get manufacturer from specified component ID
&self
id
&str
&self
id
&str