pub struct Choices {
pub cli: Option<String>,
pub env: Option<String>,
pub project: Option<ProjectChoices>,
pub user: Option<String>,
}Expand description
The compiler names each layer gives, as read by whoever reads them.
Fields§
§cli: Option<String>--compiler.
env: Option<String>CUNO_COMPILER.
project: Option<ProjectChoices>The project’s layers; None outside a project, where they do not
exist (toolchain.md, “Selection”).
user: Option<String>The user-level config.toml.
Implementations§
Source§impl Choices
impl Choices
Sourcepub fn kind(
&self,
host: HostOs,
) -> Result<(CompilerKind, Source), ToolchainError>
pub fn kind( &self, host: HostOs, ) -> Result<(CompilerKind, Source), ToolchainError>
The compiler asked for and where the request came from: the highest-precedence name given, else the platform’s default. An unknown or unsupported name is an error naming where it was given.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Choices
impl Freeze for Choices
impl Move for Choices
impl RefUnwindSafe for Choices
impl Send for Choiceswhere
RawVecInner: Send,
impl Sync for Choiceswhere
RawVecInner: Sync,
impl Unpin for Choices
impl UnsafeUnpin for Choices
impl UnwindSafe for Choiceswhere
RawVecInner: UnwindSafe,
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