pub fn rename_component(&self, component: &Component) -> Option<Component> {
        self.renames.get(&component.pkg).map(|r| {
            let mut c = component.clone();
            c.pkg = r.clone();
            c
        })
    }
// If the component should be renamed by this manifest, then return a new
// component with the new name. If not, return `None`.
If the component should be renamed by this manifest, then return a new
component with the new name. If not, return `None`.
If the component should be renamed by this manifest then return a new component with the new name . If not return ` None ` .
pub fn rename_component(&self, component: &Component) -> Option<Component> {
        self.renames.get(&component.pkg).map(|r| {
            let mut c = component.clone();
            c.pkg = r.clone();
            c
        })
    }
pub fn rename_component ( & self , component : & Component ) -> Option < Component > { self . renames . get ( & component . pkg ) . map ( | r | { let mut c = component . clone ( ) ; c . pkg = r . clone ( ) ; c } ) }
If the component should be renamed by this manifest, then return a new
component with the new name.
If the component should be renamed by this manifest then return a new component with the new name .
&self
component
&Component