pub struct VirtualPackageOverrides {
pub win: Option<Override>,
pub osx: Option<Override>,
pub linux: Option<Override>,
pub libc: Option<Override>,
pub cuda: Option<Override>,
pub archspec: Option<Override>,
}Expand description
Configure the overrides used in this crate.
The default value is None for all overrides which means that by default
none of the virtual packages are overridden.
Use VirtualPackageOverrides::from_env() to create an instance of this
struct with all overrides set to the default environment variables.
Fields§
§win: Option<Override>The override for the win virtual package
osx: Option<Override>The override for the osx virtual package
linux: Option<Override>The override for the linux virtual package
libc: Option<Override>The override for the libc virtual package
cuda: Option<Override>The override for the cuda virtual package
archspec: Option<Override>The override for the archspec virtual package
Implementations§
Trait Implementations§
Source§impl Clone for VirtualPackageOverrides
impl Clone for VirtualPackageOverrides
Source§fn clone(&self) -> VirtualPackageOverrides
fn clone(&self) -> VirtualPackageOverrides
Returns a copy 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 VirtualPackageOverrides
impl Debug for VirtualPackageOverrides
Source§impl Default for VirtualPackageOverrides
impl Default for VirtualPackageOverrides
Source§fn default() -> VirtualPackageOverrides
fn default() -> VirtualPackageOverrides
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VirtualPackageOverrides
impl RefUnwindSafe for VirtualPackageOverrides
impl Send for VirtualPackageOverrides
impl Sync for VirtualPackageOverrides
impl Unpin for VirtualPackageOverrides
impl UnwindSafe for VirtualPackageOverrides
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