pub struct VirtualPackages {
pub win: Option<Windows>,
pub unix: bool,
pub linux: Option<Linux>,
pub osx: Option<Osx>,
pub libc: Option<LibC>,
pub cuda: Option<Cuda>,
pub archspec: Option<Archspec>,
}Expand description
A struct that represents all virtual packages provided by this library.
Fields§
§win: Option<Windows>Available on windows
unix: boolAvailable on Unix based platforms
linux: Option<Linux>Available when running on Linux
osx: Option<Osx>Available when running on OSX
libc: Option<LibC>Available LibC family and version
cuda: Option<Cuda>Available Cuda version
archspec: Option<Archspec>The CPU architecture
Implementations§
Source§impl VirtualPackages
impl VirtualPackages
Sourcepub fn into_virtual_packages(self) -> impl Iterator<Item = VirtualPackage>
pub fn into_virtual_packages(self) -> impl Iterator<Item = VirtualPackage>
Convert this struct into an iterator of VirtualPackage.
Sourcepub fn into_generic_virtual_packages(
self,
) -> impl Iterator<Item = GenericVirtualPackage>
pub fn into_generic_virtual_packages( self, ) -> impl Iterator<Item = GenericVirtualPackage>
Convert this struct into an iterator of GenericVirtualPackage.
Sourcepub fn detect(
overrides: &VirtualPackageOverrides,
) -> Result<Self, DetectVirtualPackageError>
pub fn detect( overrides: &VirtualPackageOverrides, ) -> Result<Self, DetectVirtualPackageError>
Detect the virtual packages of the current system with the given overrides.
Trait Implementations§
Source§impl Clone for VirtualPackages
impl Clone for VirtualPackages
Source§fn clone(&self) -> VirtualPackages
fn clone(&self) -> VirtualPackages
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 VirtualPackages
impl Debug for VirtualPackages
Source§impl Default for VirtualPackages
impl Default for VirtualPackages
Source§fn default() -> VirtualPackages
fn default() -> VirtualPackages
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VirtualPackages
impl RefUnwindSafe for VirtualPackages
impl Send for VirtualPackages
impl Sync for VirtualPackages
impl Unpin for VirtualPackages
impl UnwindSafe for VirtualPackages
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