Struct mmrbi::rustup::ToolchainTargets[][src]

pub struct ToolchainTargets<'t> { /* fields omitted */ }

Result of toolchain.targets()

Implementations

impl<'t> ToolchainTargets<'t>[src]

pub fn all(&self) -> BTreeSet<Target>[src]

rustup target list --toolchain {toolchain} - gets all targets known by this toolchain, installed or not

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

rustup target list --installed --toolchain {toolchain} - gets all installed targets for this toolchain

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

Verifies target exists within rustup target list --installed --toolchain {toolchain}

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

rustup target add {target} --toolchain {toolchain} - adds a target

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

rustup target remove {target} --toolchain {toolchain} - removes a target

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.