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