pub struct SysrootResolution {
pub sysroot_path: PathBuf,
pub env: BTreeMap<String, String>,
pub cargo_config: Option<Table>,
pub notes: Vec<String>,
pub is_builtin: bool,
}Expand description
Resolution result from a sysroot provider.
Fields§
§sysroot_path: PathBuf§env: BTreeMap<String, String>§cargo_config: Option<Table>§notes: Vec<String>§is_builtin: boolImplementations§
Source§impl SysrootResolution
impl SysrootResolution
pub fn new(sysroot_path: PathBuf) -> 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_builtin(self, builtin: bool) -> Self
Trait Implementations§
Source§impl Clone for SysrootResolution
impl Clone for SysrootResolution
Source§impl Debug for SysrootResolution
impl Debug for SysrootResolution
Source§impl PartialEq for SysrootResolution
impl PartialEq for SysrootResolution
impl StructuralPartialEq for SysrootResolution
Auto Trait Implementations§
impl Freeze for SysrootResolution
impl RefUnwindSafe for SysrootResolution
impl Send for SysrootResolution
impl Sync for SysrootResolution
impl Unpin for SysrootResolution
impl UnsafeUnpin for SysrootResolution
impl UnwindSafe for SysrootResolution
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