Struct mmrbi::rustup::RustupToolchains [−][src]
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
impl<'r> RefUnwindSafe for RustupToolchains<'r>
[src]
impl<'r> Send for RustupToolchains<'r>
[src]
impl<'r> Sync for RustupToolchains<'r>
[src]
impl<'r> Unpin for RustupToolchains<'r>
[src]
impl<'r> UnwindSafe for RustupToolchains<'r>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,