pub struct NeonToken { /* private fields */ }Expand description
Stub for NEON token (not available on this architecture).
Implementations§
Source§impl NeonToken
impl NeonToken
Sourcepub unsafe fn forge_token_dangerously() -> Self
👎Deprecated since 0.9.29: Renamed to from_context() on native architectures; on a foreign architecture the features cannot exist at all
pub unsafe fn forge_token_dangerously() -> Self
Renamed to from_context() on native architectures; on a foreign architecture the features cannot exist at all
Construct a proof for a foreign architecture. Always unsafe.
On this token’s native architecture the constructor is
from_context(), a safe #[target_feature] function that
rustc checks against the caller’s feature context. The current
compilation target is a different architecture, so no such
context can exist, there is nothing for rustc to check, and no
from_context() is generated — only this unsafe fn.
§Safety
Unsatisfiable: this token asserts CPU features that the target architecture does not have. Any token produced here is a lie, and using it to enter a SIMD region is undefined behavior. It exists so cross-architecture code compiles, not to be called.
Source§impl NeonToken
impl NeonToken
Sourcepub fn dangerously_disable_token_process_wide(
_disabled: bool,
) -> Result<(), CompileTimeGuaranteedError>
pub fn dangerously_disable_token_process_wide( _disabled: bool, ) -> Result<(), CompileTimeGuaranteedError>
This token is not available on this architecture.
Sourcepub fn manually_disabled() -> Result<bool, CompileTimeGuaranteedError>
pub fn manually_disabled() -> Result<bool, CompileTimeGuaranteedError>
This token is not available on this architecture.
Trait Implementations§
impl Copy for NeonToken
impl Has128BitSimd for NeonToken
impl HasNeon for NeonToken
Source§impl IntoConcreteToken for NeonToken
impl IntoConcreteToken for NeonToken
Source§fn as_x64v1(self) -> Option<X64V1Token>
fn as_x64v1(self) -> Option<X64V1Token>
Source§fn as_x64v2(self) -> Option<X64V2Token>
fn as_x64v2(self) -> Option<X64V2Token>
Source§fn as_x64_crypto(self) -> Option<X64CryptoToken>
fn as_x64_crypto(self) -> Option<X64CryptoToken>
Source§fn as_x64v3(self) -> Option<X64V3Token>
fn as_x64v3(self) -> Option<X64V3Token>
Source§fn as_x64v3_crypto(self) -> Option<X64V3CryptoToken>
fn as_x64v3_crypto(self) -> Option<X64V3CryptoToken>
Source§fn as_x64v3_gfni_crypto(self) -> Option<X64V3GfniCryptoToken>
fn as_x64v3_gfni_crypto(self) -> Option<X64V3GfniCryptoToken>
Source§fn as_x64v4(self) -> Option<X64V4Token>
fn as_x64v4(self) -> Option<X64V4Token>
Source§fn as_x64v4x(self) -> Option<X64V4xToken>
fn as_x64v4x(self) -> Option<X64V4xToken>
Source§fn as_avx512_fp16(self) -> Option<Avx512Fp16Token>
fn as_avx512_fp16(self) -> Option<Avx512Fp16Token>
Source§fn as_neon_aes(self) -> Option<NeonAesToken>
fn as_neon_aes(self) -> Option<NeonAesToken>
Source§fn as_neon_sha3(self) -> Option<NeonSha3Token>
fn as_neon_sha3(self) -> Option<NeonSha3Token>
Source§fn as_neon_crc(self) -> Option<NeonCrcToken>
fn as_neon_crc(self) -> Option<NeonCrcToken>
Source§fn as_arm_v2(self) -> Option<Arm64V2Token>
fn as_arm_v2(self) -> Option<Arm64V2Token>
Source§fn as_arm_v3(self) -> Option<Arm64V3Token>
fn as_arm_v3(self) -> Option<Arm64V3Token>
Source§fn as_wasm128(self) -> Option<Wasm128Token>
fn as_wasm128(self) -> Option<Wasm128Token>
Source§fn as_wasm128_relaxed(self) -> Option<Wasm128RelaxedToken>
fn as_wasm128_relaxed(self) -> Option<Wasm128RelaxedToken>
Source§fn as_scalar(self) -> Option<ScalarToken>
fn as_scalar(self) -> Option<ScalarToken>
Source§impl SimdToken for NeonToken
impl SimdToken for NeonToken
Source§const TARGET_FEATURES: &'static str = "neon"
const TARGET_FEATURES: &'static str = "neon"
"sse,sse2,avx2,fma,bmi1,bmi2,f16c,lzcnt"). Read moreSource§const ENABLE_TARGET_FEATURES: &'static str = "-Ctarget-feature=+neon"
const ENABLE_TARGET_FEATURES: &'static str = "-Ctarget-feature=+neon"
Source§const DISABLE_TARGET_FEATURES: &'static str = "-Ctarget-feature=-neon"
const DISABLE_TARGET_FEATURES: &'static str = "-Ctarget-feature=-neon"
Source§fn compiled_with() -> Option<bool>
fn compiled_with() -> Option<bool>
Source§fn summon() -> Option<Self>
fn summon() -> Option<Self>
Source§fn guaranteed() -> Option<bool>
fn guaranteed() -> Option<bool>
Use compiled_with() instead
compiled_with().