Enum holochain_wasmer_host::prelude::CpuFeature [−]
pub enum CpuFeature {}Show variants
SSE2, SSE3, SSSE3, SSE41, SSE42, POPCNT, AVX, BMI1, BMI2, AVX2, AVX512DQ, AVX512VL, AVX512F, LZCNT,
Expand description
The nomenclature is inspired by the cpuid
crate.
The list of supported features was initially retrieved from
cranelift-native
.
The CpuFeature
enum values are likely to grow closer to the
original cpuid
. However, we prefer to start small and grow from there.
If you would like to use a flag that doesn’t exist yet here, please open a PR.
Variants
Implementations
impl CpuFeature
impl CpuFeature
pub fn for_host() -> EnumSet<CpuFeature>
pub fn for_host() -> EnumSet<CpuFeature>
Retrieves the features for the current Host
pub fn set() -> EnumSet<CpuFeature>
pub fn set() -> EnumSet<CpuFeature>
Retrieves an empty set of CpuFeature
s.
Trait Implementations
impl<O> BitAnd<O> for CpuFeature where
O: Into<EnumSet<CpuFeature>>,
impl<O> BitAnd<O> for CpuFeature where
O: Into<EnumSet<CpuFeature>>,
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the &
operator.
pub fn bitand(self, other: O) -> <CpuFeature as BitAnd<O>>::Output
pub fn bitand(self, other: O) -> <CpuFeature as BitAnd<O>>::Output
Performs the &
operation. Read more
impl<O> BitOr<O> for CpuFeature where
O: Into<EnumSet<CpuFeature>>,
impl<O> BitOr<O> for CpuFeature where
O: Into<EnumSet<CpuFeature>>,
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the |
operator.
pub fn bitor(self, other: O) -> <CpuFeature as BitOr<O>>::Output
pub fn bitor(self, other: O) -> <CpuFeature as BitOr<O>>::Output
Performs the |
operation. Read more
impl<O> BitXor<O> for CpuFeature where
O: Into<EnumSet<CpuFeature>>,
impl<O> BitXor<O> for CpuFeature where
O: Into<EnumSet<CpuFeature>>,
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the ^
operator.
pub fn bitxor(self, other: O) -> <CpuFeature as BitXor<O>>::Output
pub fn bitxor(self, other: O) -> <CpuFeature as BitXor<O>>::Output
Performs the ^
operation. Read more
impl Clone for CpuFeature
impl Clone for CpuFeature
pub fn clone(&self) -> CpuFeature
pub fn clone(&self) -> CpuFeature
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for CpuFeature
impl Debug for CpuFeature
impl FromStr for CpuFeature
impl FromStr for CpuFeature
type Err = ParseCpuFeatureError
type Err = ParseCpuFeatureError
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<CpuFeature, <CpuFeature as FromStr>::Err>
pub fn from_str(s: &str) -> Result<CpuFeature, <CpuFeature as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
impl Hash for CpuFeature
impl Hash for CpuFeature
impl Not for CpuFeature
impl Not for CpuFeature
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the !
operator.
pub fn not(self) -> <CpuFeature as Not>::Output
pub fn not(self) -> <CpuFeature as Not>::Output
Performs the unary !
operation. Read more
impl PartialEq<CpuFeature> for CpuFeature
impl PartialEq<CpuFeature> for CpuFeature
impl PartialEq<EnumSet<CpuFeature>> for CpuFeature
impl PartialEq<EnumSet<CpuFeature>> for CpuFeature
impl<O> Sub<O> for CpuFeature where
O: Into<EnumSet<CpuFeature>>,
impl<O> Sub<O> for CpuFeature where
O: Into<EnumSet<CpuFeature>>,
type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the -
operator.
pub fn sub(self, other: O) -> <CpuFeature as Sub<O>>::Output
pub fn sub(self, other: O) -> <CpuFeature as Sub<O>>::Output
Performs the -
operation. Read more
impl ToString for CpuFeature
impl ToString for CpuFeature
impl Copy for CpuFeature
impl EnumSetType for CpuFeature
impl Eq for CpuFeature
Auto Trait Implementations
impl RefUnwindSafe for CpuFeature
impl Send for CpuFeature
impl Sync for CpuFeature
impl Unpin for CpuFeature
impl UnwindSafe for CpuFeature
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V