Enum wasmer::CpuFeature
pub enum CpuFeature {
Show 15 variants
SSE2,
SSE3,
SSSE3,
SSE41,
SSE42,
POPCNT,
AVX,
BMI1,
BMI2,
AVX2,
AVX512DQ,
AVX512VL,
AVX512F,
LZCNT,
NEON,
}
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 CpuFeaturewhere
O: Into<EnumSet<CpuFeature>>,
impl<O> BitAnd<O> for CpuFeaturewhere O: Into<EnumSet<CpuFeature>>,
§type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the
&
operator.§impl<O> BitOr<O> for CpuFeaturewhere
O: Into<EnumSet<CpuFeature>>,
impl<O> BitOr<O> for CpuFeaturewhere O: Into<EnumSet<CpuFeature>>,
§type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the
|
operator.§impl<O> BitXor<O> for CpuFeaturewhere
O: Into<EnumSet<CpuFeature>>,
impl<O> BitXor<O> for CpuFeaturewhere O: Into<EnumSet<CpuFeature>>,
§type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the
^
operator.§impl Clone for CpuFeature
impl Clone for CpuFeature
§fn clone(&self) -> CpuFeature
fn clone(&self) -> CpuFeature
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 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.
§fn from_str(s: &str) -> Result<CpuFeature, <CpuFeature as FromStr>::Err>
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.§impl PartialEq<CpuFeature> for CpuFeature
impl PartialEq<CpuFeature> for CpuFeature
§fn eq(&self, other: &CpuFeature) -> bool
fn eq(&self, other: &CpuFeature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialEq<EnumSet<CpuFeature>> for CpuFeature
impl PartialEq<EnumSet<CpuFeature>> for CpuFeature
§fn eq(&self, other: &EnumSet<CpuFeature>) -> bool
fn eq(&self, other: &EnumSet<CpuFeature>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl<O> Sub<O> for CpuFeaturewhere
O: Into<EnumSet<CpuFeature>>,
impl<O> Sub<O> for CpuFeaturewhere O: Into<EnumSet<CpuFeature>>,
§type Output = EnumSet<CpuFeature>
type Output = EnumSet<CpuFeature>
The resulting type after applying the
-
operator.§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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref