pub fn install(&self, workspace: &Workspace) -> Result<(), Error> {
        match self {
            Self::Dist { name } => init_toolchain_from_dist(workspace, name)?,
            Self::CI { sha, alt } => init_toolchain_from_ci(workspace, *alt, sha)?,
            Self::__NonExaustive => panic!("do not create __NonExaustive variants manually"),
        }

        Ok(())
    }
/// Download and install the toolchain.
Download and install the toolchain.
Download and install the toolchain .
pub fn install(&self, workspace: &Workspace) -> Result<(), Error> {
        match self {
            Self::Dist { name } => init_toolchain_from_dist(workspace, name)?,
            Self::CI { sha, alt } => init_toolchain_from_ci(workspace, *alt, sha)?,
            Self::__NonExaustive => panic!("do not create __NonExaustive variants manually"),
        }
        Ok(())
    }
pub fn install ( & self , workspace : & Workspace ) -> Result < ( ) , Error > { match self { Self :: Dist { name } => init_toolchain_from_dist ( workspace , name ) ? , Self :: CI { sha , alt } => init_toolchain_from_ci ( workspace , * alt , sha ) ? , Self :: __NonExaustive => panic ! ( " " ) , } Ok ( ( ) ) }
Download and install the toolchain.
Download and install the toolchain .
&self
workspace
&Workspace