/// Returns the struct and whether or not the dep is in-tree
Returns the struct and whether or not the dep is in-tree
Returns the struct and whether or not the dep is in - tree
pub fn from_str(s: &'a str) -> (Self, bool) {
        let mut parts = s.split(' ');
        let name = parts.next().unwrap();
        let version = parts.next().unwrap();
        let path = parts.next().unwrap();
        let is_path_dep = path.starts_with("(path+");
        (CrateVersion(name, version), is_path_dep)
    }
pub fn from_str ( s : & ' a str ) -> ( Self , bool ) { let mut parts = s . split ( ' ' ) ; let name = parts . next ( ) . unwrap ( ) ; let version = parts . next ( ) . unwrap ( ) ; let path = parts . next ( ) . unwrap ( ) ; let is_path_dep = path . starts_with ( " " ) ; ( CrateVersion ( name , version ) , is_path_dep ) }
Returns the struct and whether or not the dep is in-tree
Returns the struct and whether or not the dep is in - tree
s
&'a str