Struct mmrbi::rustup::ToolchainTargets
source · [−]pub struct ToolchainTargets<'t> { /* private fields */ }
Expand description
Result of toolchain.targets()
Implementations
sourceimpl<'t> ToolchainTargets<'t>
impl<'t> ToolchainTargets<'t>
sourcepub fn all(&self) -> BTreeSet<Target>
pub fn all(&self) -> BTreeSet<Target>
rustup target list --toolchain {toolchain}
- gets all targets known by this toolchain, installed or not
sourcepub fn installed(&self) -> BTreeSet<Target>
pub fn installed(&self) -> BTreeSet<Target>
rustup target list --installed --toolchain {toolchain}
- gets all installed targets for this toolchain
sourcepub fn get(&self, target: impl AsRef<str>) -> Option<Target>
pub fn get(&self, target: impl AsRef<str>) -> Option<Target>
Verifies target exists within rustup target list --installed --toolchain {toolchain}
Auto Trait Implementations
impl<'t> RefUnwindSafe for ToolchainTargets<'t>
impl<'t> Send for ToolchainTargets<'t>
impl<'t> Sync for ToolchainTargets<'t>
impl<'t> Unpin for ToolchainTargets<'t>
impl<'t> UnwindSafe for ToolchainTargets<'t>
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