#[non_exhaustive]pub struct Toolchain { /* private fields */ }
Expand description
Implementations§
Source§impl Toolchain
impl Toolchain
Sourcepub fn new(
channel: Channel,
date: Option<Date>,
host: Target,
components: HashSet<Component>,
targets: HashSet<Target>,
) -> Self
pub fn new( channel: Channel, date: Option<Date>, host: Target, components: HashSet<Component>, targets: HashSet<Target>, ) -> Self
Create a new toolchain instance
Sourcepub fn components(&self) -> &HashSet<Component>
pub fn components(&self) -> &HashSet<Component>
The components associated with the toolchain
Sourcepub fn set_channel(&mut self, channel: Channel)
pub fn set_channel(&mut self, channel: Channel)
Update the associated channel
Sourcepub fn set_components(&mut self, components: HashSet<Component>)
pub fn set_components(&mut self, components: HashSet<Component>)
Update the associated toolchain components
Sourcepub fn set_targets(&mut self, targets: HashSet<Target>)
pub fn set_targets(&mut self, targets: HashSet<Target>)
Update the associated toolchain targets
Trait Implementations§
impl Eq for Toolchain
impl StructuralPartialEq for Toolchain
Auto Trait Implementations§
impl Freeze for Toolchain
impl RefUnwindSafe for Toolchain
impl Send for Toolchain
impl Sync for Toolchain
impl Unpin for Toolchain
impl UnwindSafe for Toolchain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more