[−][src]Struct mmrbi::rustup::Rustup
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
impl RefUnwindSafe for Rustup
[src]
impl Send for Rustup
[src]
impl Sync for Rustup
[src]
impl Unpin for Rustup
[src]
impl UnwindSafe for Rustup
[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>,