pub struct EffectiveIsa {
pub triple: String,
pub polydat_register_bits: u16,
pub cranelift_version: &'static str,
/* private fields */
}Expand description
Effective code-generation capabilities advertised by the native Cranelift builder used for this process.
Fields§
§triple: StringFull target triple of the JIT host.
polydat_register_bits: u16Width of Polydat’s fixed register type plane. This is deliberately not inferred from AVX/AVX-512 feature names.
cranelift_version: &'static strCranelift version which produced this capability record.
Implementations§
Source§impl EffectiveIsa
impl EffectiveIsa
Sourcepub fn detect() -> Result<Self, String>
pub fn detect() -> Result<Self, String>
Probe the same native builder used by production JIT compilation.
Sourcepub fn has_flag(&self, flag: &str) -> bool
pub fn has_flag(&self, flag: &str) -> bool
Whether an ISA flag such as has_avx2 is enabled in the builder.
Sourcepub fn enabled_flags(&self) -> &[&'static str]
pub fn enabled_flags(&self) -> &[&'static str]
Stable ordered flag list for diagnostics and plan-cache identity.
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
Text fingerprint suitable for inclusion in a compiled-plan cache key.
Trait Implementations§
Source§impl Clone for EffectiveIsa
impl Clone for EffectiveIsa
Source§fn clone(&self) -> EffectiveIsa
fn clone(&self) -> EffectiveIsa
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EffectiveIsa
impl Debug for EffectiveIsa
impl Eq for EffectiveIsa
Source§impl PartialEq for EffectiveIsa
impl PartialEq for EffectiveIsa
impl StructuralPartialEq for EffectiveIsa
Auto Trait Implementations§
impl Freeze for EffectiveIsa
impl RefUnwindSafe for EffectiveIsa
impl Send for EffectiveIsa
impl Sync for EffectiveIsa
impl Unpin for EffectiveIsa
impl UnsafeUnpin for EffectiveIsa
impl UnwindSafe for EffectiveIsa
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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