pub struct Toolchain {
pub name: String,
pub version: String,
pub target_triple: String,
pub bin_path: String,
pub sysroot_path: String,
pub components: Vec<ToolchainComponent>,
}Expand description
A registered toolchain containing one or more components.
Fields§
§name: StringHuman-readable name (e.g. “veridian-gcc-13”).
version: StringVersion string (e.g. “13.2.0”).
target_triple: StringTarget triple this toolchain produces code for.
bin_path: StringFilesystem path to the toolchain binary directory.
sysroot_path: StringFilesystem path to the sysroot containing headers and libraries.
components: Vec<ToolchainComponent>Components available in this toolchain.
Implementations§
Source§impl Toolchain
impl Toolchain
Sourcepub fn new(
name: &str,
version: &str,
target_triple: &str,
bin_path: &str,
sysroot_path: &str,
) -> Self
pub fn new( name: &str, version: &str, target_triple: &str, bin_path: &str, sysroot_path: &str, ) -> Self
Create a new toolchain with the given identity and paths.
Sourcepub fn add_component(&mut self, component: ToolchainComponent)
pub fn add_component(&mut self, component: ToolchainComponent)
Add a component to this toolchain.
Sourcepub fn has_component(&self, component: &ToolchainComponent) -> bool
pub fn has_component(&self, component: &ToolchainComponent) -> bool
Check whether a specific component type is present.
Trait Implementations§
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)