Struct mmrbi::rustup::RustupToolchains
source · [−]pub struct RustupToolchains<'r> { /* private fields */ }
Expand description
Result of rustup.toolchains()
Implementations
sourceimpl<'r> RustupToolchains<'r>
impl<'r> RustupToolchains<'r>
sourcepub fn active(&self) -> Option<Toolchain>
pub fn active(&self) -> Option<Toolchain>
Gets the default toolchain by parsing rustup show active-toolchain
sourcepub fn default(&self) -> Option<Toolchain>
pub fn default(&self) -> Option<Toolchain>
Gets the default toolchain by parsing rustup default
sourcepub fn installed(&self) -> BTreeSet<Toolchain>
pub fn installed(&self) -> BTreeSet<Toolchain>
Gets all installed toolchains by parsing rustup toolchain list
sourcepub fn get(&self, toolchain: impl AsRef<str>) -> Option<Toolchain>
pub fn get(&self, toolchain: impl AsRef<str>) -> Option<Toolchain>
Gets an installed toolchain by parsing rustup +{toolchain} show active-toolchain
Auto Trait Implementations
impl<'r> RefUnwindSafe for RustupToolchains<'r>
impl<'r> Send for RustupToolchains<'r>
impl<'r> Sync for RustupToolchains<'r>
impl<'r> Unpin for RustupToolchains<'r>
impl<'r> UnwindSafe for RustupToolchains<'r>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more