pub struct ResolveOptions { /* private fields */ }Implementations§
Source§impl ResolveOptions
impl ResolveOptions
Sourcepub fn rustc<P: Into<PathAndArgs>>(self, rustc: P) -> Self
pub fn rustc<P: Into<PathAndArgs>>(self, rustc: P) -> Self
Sourcepub fn cargo<S: Into<OsString>>(self, cargo: S) -> Self
pub fn cargo<S: Into<OsString>>(self, cargo: S) -> Self
Sets cargo path.
§Default value
The value of the CARGO environment variable if it is set. Otherwise, “cargo”.
Sourcepub fn cargo_home<P: Into<Option<PathBuf>>>(self, cargo_home: P) -> Self
pub fn cargo_home<P: Into<Option<PathBuf>>>(self, cargo_home: P) -> Self
Sets CARGO_HOME path.
§Default value
home::cargo_home_with_cwd if the current directory was specified when
loading config. Otherwise, home::cargo_home.
Sourcepub fn host_triple<S: Into<String>>(self, triple: S) -> Self
pub fn host_triple<S: Into<String>>(self, triple: S) -> Self
Sourcepub fn env<I: IntoIterator<Item = (K, V)>, K: Into<OsString>, V: Into<OsString>>(
self,
vars: I,
) -> Self
pub fn env<I: IntoIterator<Item = (K, V)>, K: Into<OsString>, V: Into<OsString>>( self, vars: I, ) -> Self
Sets the specified key-values as environment variables to be read during config resolution.
This is mainly intended for use in tests where it is necessary to adjust the kinds of environment variables that are referenced.
§Default value
Trait Implementations§
Source§impl Clone for ResolveOptions
impl Clone for ResolveOptions
Source§fn clone(&self) -> ResolveOptions
fn clone(&self) -> ResolveOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolveOptions
impl Debug for ResolveOptions
Source§impl Default for ResolveOptions
impl Default for ResolveOptions
Source§fn default() -> ResolveOptions
fn default() -> ResolveOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResolveOptions
impl RefUnwindSafe for ResolveOptions
impl Send for ResolveOptions
impl Sync for ResolveOptions
impl Unpin for ResolveOptions
impl UnsafeUnpin for ResolveOptions
impl UnwindSafe for ResolveOptions
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