Struct mmrbi::rustup::RustupToolchains[][src]

pub struct RustupToolchains<'r> { /* fields omitted */ }

Result of rustup.toolchains()

Implementations

impl<'r> RustupToolchains<'r>[src]

pub fn active(&self) -> Option<Toolchain>[src]

Gets the default toolchain by parsing rustup show active-toolchain

pub fn default(&self) -> Option<Toolchain>[src]

Gets the default toolchain by parsing rustup default

pub fn installed(&self) -> BTreeSet<Toolchain>[src]

Gets all installed toolchains by parsing rustup toolchain list

pub fn get(&self, toolchain: impl AsRef<str>) -> Option<Toolchain>[src]

Gets an installed toolchain by parsing rustup +{toolchain} show active-toolchain

pub fn install(&self, toolchain: impl AsRef<str>) -> Result<Toolchain>[src]

Install a toolchain via rustup toolchain install ${toolchain}

pub fn uninstall(&self, toolchain: impl AsRef<str>) -> Result<()>[src]

Uninstall a toolchain via rustup toolchain install ${toolchain}

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.