pub fn lookup_used(&self, pos: &Pos, package: &Package, used: &str) -> Result<&Package> {
        // resolve alias
        self.used
            .get(&(package.clone(), used.to_owned()))
            .ok_or_else(|| Error::pos(format!("Missing import alias for ({})", used), pos.clone()))
    }
/// Lookup the package declaration a used alias refers to.
Lookup the package declaration a used alias refers to.
Lookup the package declaration a used alias refers to .
pub fn lookup_used(&self, pos: &Pos, package: &Package, used: &str) -> Result<&Package> {
        // resolve alias
        self.used
            .get(&(package.clone(), used.to_owned()))
            .ok_or_else(|| Error::pos(format!("Missing import alias for ({})", used), pos.clone()))
    }
pub fn lookup_used ( & self , pos : & Pos , package : & Package , used : & str ) -> Result < & Package > { // resolve alias self . used . get ( & ( package . clone ( ) , used . to_owned ( ) ) ) . ok_or_else ( | | Error :: pos ( format ! ( " " used ) , pos . clone ( ) ) ) }
Lookup the package declaration a used alias refers to.
Lookup the package declaration a used alias refers to .
&self
pos
&Pos
package
&Package
used
&str
&self
pos
&Pos
package
&Package
used
&str