Movatterモバイル変換


[0]ホーム

URL:


SimdElement

std::simd

TraitSimdElement 

Source
pub unsafe trait SimdElement: Sealed +Copy {    typeMask:MaskElement;}
🔬This is a nightly-only experimental API. (portable_simd #86656)
Expand description

Marker trait for types that may be used as SIMD vector elements.

§Safety

This trait, when implemented, asserts the compiler can monomorphize#[repr(simd)] structs with the marked type as an element.Strictly, it is valid to impl if the vector will not be miscompiled.Practically, it is user-unfriendly to impl it if the vector won’t compile,even when no soundness guarantees are broken by allowing the user to try.

Required Associated Types§

Source

typeMask:MaskElement

🔬This is a nightly-only experimental API. (portable_simd #86656)

The mask element type corresponding to this element type.

Dyn Compatibility§

This trait isnotdyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

implSimdElement forf32

Source§

implSimdElement forf64

Source§

implSimdElement fori8

Source§

implSimdElement fori16

Source§

implSimdElement fori32

Source§

implSimdElement fori64

Source§

implSimdElement forisize

Source§

implSimdElement foru8

Source§

implSimdElement foru16

Source§

implSimdElement foru32

Source§

implSimdElement foru64

Source§

implSimdElement forusize

Source§

impl<T>SimdElement for*const T
where T:Pointee<Metadata =()>,

Source§

impl<T>SimdElement for*mut T
where T:Pointee<Metadata =()>,


[8]ページ先頭

©2009-2026 Movatter.jp