pub struct ToolchainResolution {
pub env: BTreeMap<String, String>,
pub cargo_config: Option<Table>,
pub notes: Vec<String>,
pub rustc_path: Option<PathBuf>,
pub cargo_path: Option<PathBuf>,
pub target_spec: Option<String>,
pub rustflags: Vec<String>,
}Expand description
Resolution result from a toolchain provider.
Fields§
§env: BTreeMap<String, String>§cargo_config: Option<Table>§notes: Vec<String>§rustc_path: Option<PathBuf>§cargo_path: Option<PathBuf>§target_spec: Option<String>§rustflags: Vec<String>Implementations§
Source§impl ToolchainResolution
impl ToolchainResolution
pub fn new() -> Self
pub fn with_env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn with_cargo_config(self, config: Table) -> Self
pub fn with_note(self, note: impl Into<String>) -> Self
pub fn with_rustc(self, path: PathBuf) -> Self
pub fn with_cargo(self, path: PathBuf) -> Self
pub fn with_target_spec(self, spec: String) -> Self
pub fn with_rustflags(self, flags: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for ToolchainResolution
impl Clone for ToolchainResolution
Source§impl Debug for ToolchainResolution
impl Debug for ToolchainResolution
Source§impl Default for ToolchainResolution
impl Default for ToolchainResolution
Source§impl PartialEq for ToolchainResolution
impl PartialEq for ToolchainResolution
impl StructuralPartialEq for ToolchainResolution
Auto Trait Implementations§
impl Freeze for ToolchainResolution
impl RefUnwindSafe for ToolchainResolution
impl Send for ToolchainResolution
impl Sync for ToolchainResolution
impl Unpin for ToolchainResolution
impl UnsafeUnpin for ToolchainResolution
impl UnwindSafe for ToolchainResolution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more