pub fn root_url(&self) -> PkgUrl {
        PkgUrl {
            repo: self.repo.clone(),
            path: self.path.clone(),
            hash: self.hash.clone(),
            resource: None,
            name: self.name.clone(),
            variant: self.variant.clone(),
        }
    }
/// Produce a new [PkgUrl] with any resource fragment stripped off.
Produce a new [PkgUrl] with any resource fragment stripped off.
Produce a new [ PkgUrl ] with any resource fragment stripped off .
pub fn root_url(&self) -> PkgUrl {
        PkgUrl {
            repo: self.repo.clone(),
            path: self.path.clone(),
            hash: self.hash.clone(),
            resource: None,
            name: self.name.clone(),
            variant: self.variant.clone(),
        }
    }
pub fn root_url ( & self ) -> PkgUrl { PkgUrl { repo : self . repo . clone ( ) , path : self . path . clone ( ) , hash : self . hash . clone ( ) , resource : None , name : self . name . clone ( ) , variant : self . variant . clone ( ) , } }
Produce a new [PkgUrl] with any resource fragment stripped off.
Produce a new [ PkgUrl ] with any resource fragment stripped off .
&self
&self