[][src]Struct mmrbi::rustup::Rustup

pub struct Rustup { /* fields omitted */ }

Wrapper around a rustup executable that existed at least at one point.

Implementations

impl Rustup[src]

pub fn default() -> Result<Self>[src]

Get rustup from ${PATH}, if available.

Returns Err(...) if rustup --version fails.

pub fn new(rustup: impl AsRef<OsStr> + Into<OsString>) -> Result<Self>[src]

Get rustup from a specific path, if available.

Returns Err(...) if {rustup} --version fails.

pub fn new_unchecked(rustup: impl AsRef<OsStr> + Into<OsString>) -> Self[src]

Get rustup from a specific path

pub fn version(&self) -> Version[src]

This is supported on crate feature version only.

Parse rustup --version

pub fn is_available(&self) -> bool[src]

Returns true if rustup --version still succeeds

pub fn toolchains(&self) -> RustupToolchains<'_>[src]

Toolchains rustup is aware of

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.