fn local_dir(&self, id: &str) -> String {
        let path_elems: Vec<&str> = id.split(ID_SEPARATOR).collect();
        let last_but_one = path_elems.len() - 1;
        let result = QEDALIB_DIR.to_string();
        if last_but_one > 0 {
            result + "/" + &path_elems[..last_but_one].join("/")
        } else {
            result
        }
    }
// Get local directory path from specified component ID
Get local directory path from specified component ID
Get local directory path from specified component ID
fn local_dir(&self, id: &str) -> String {
        let path_elems: Vec<&str> = id.split(ID_SEPARATOR).collect();
        let last_but_one = path_elems.len() - 1;
        let result = QEDALIB_DIR.to_string();
        if last_but_one > 0 {
            result + "/" + &path_elems[..last_but_one].join("/")
        } else {
            result
        }
    }
fn local_dir ( & self , id : & str ) -> String { let path_elems : Vec < & str > = id . split ( ID_SEPARATOR ) . collect ( ) ; let last_but_one = path_elems . len ( ) - 1 ; let result = QEDALIB_DIR . to_string ( ) ; if last_but_one > 0 { result + " " + & path_elems [ .. last_but_one ] . join ( " " ) } else { result } }
Get local directory path from specified component ID
Get local directory path from specified component ID
&self
id
&str
&self
id
&str