pub enum VirtualPackage {
Win,
Unix,
Linux(Linux),
Osx(Osx),
LibC(LibC),
Cuda(Cuda),
Archspec(Archspec),
}Expand description
An enum that represents all virtual package types provided by this library.
Variants§
Win
Available on windows
Unix
Available on unix based platforms
Linux(Linux)
Available when running on Linux
Osx(Osx)
Available when running on OSX
LibC(LibC)
Available LibC family and version
Cuda(Cuda)
Available Cuda version
Archspec(Archspec)
The CPU architecture
Implementations§
source§impl VirtualPackage
impl VirtualPackage
sourcepub fn current() -> Result<&'static [Self], DetectVirtualPackageError>
pub fn current() -> Result<&'static [Self], DetectVirtualPackageError>
Returns virtual packages detected for the current system or an error if the versions could not be properly detected.
Trait Implementations§
source§impl Clone for VirtualPackage
impl Clone for VirtualPackage
source§fn clone(&self) -> VirtualPackage
fn clone(&self) -> VirtualPackage
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 VirtualPackage
impl Debug for VirtualPackage
source§impl From<Archspec> for VirtualPackage
impl From<Archspec> for VirtualPackage
source§impl From<Cuda> for VirtualPackage
impl From<Cuda> for VirtualPackage
source§impl From<LibC> for VirtualPackage
impl From<LibC> for VirtualPackage
source§impl From<Linux> for VirtualPackage
impl From<Linux> for VirtualPackage
source§impl From<Osx> for VirtualPackage
impl From<Osx> for VirtualPackage
source§impl From<VirtualPackage> for GenericVirtualPackage
impl From<VirtualPackage> for GenericVirtualPackage
source§fn from(package: VirtualPackage) -> Self
fn from(package: VirtualPackage) -> Self
Converts to this type from the input type.
source§impl Hash for VirtualPackage
impl Hash for VirtualPackage
source§impl PartialEq for VirtualPackage
impl PartialEq for VirtualPackage
source§fn eq(&self, other: &VirtualPackage) -> bool
fn eq(&self, other: &VirtualPackage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for VirtualPackage
impl StructuralEq for VirtualPackage
impl StructuralPartialEq for VirtualPackage
Auto Trait Implementations§
impl RefUnwindSafe for VirtualPackage
impl Send for VirtualPackage
impl Sync for VirtualPackage
impl Unpin for VirtualPackage
impl UnwindSafe for VirtualPackage
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.