pub struct V128(/* private fields */);
Available on crate feature
runtime
only.Expand description
Representation of a 128-bit vector type, v128
, for WebAssembly.
This type corresponds to the v128
type in WebAssembly and can be used with
the TypedFunc
API for example. This is additionally
the payload of Val::V128
.
§Platform specifics
This type can currently only be used on x86_64 and AArch64 with the
TypedFunc
API. Rust does not have stable support on other platforms for
this type so invoking functions with v128
parameters requires the
Func::call
API (or perhaps
Func::call_unchecked
.
Implementations§
Trait Implementations§
source§impl Ord for V128
impl Ord for V128
source§impl PartialOrd for V128
impl PartialOrd for V128
impl Copy for V128
impl Eq for V128
impl WasmTy for V128
Available on x86-64 or AArch64 only.
Auto Trait Implementations§
impl Freeze for V128
impl RefUnwindSafe for V128
impl Send for V128
impl Sync for V128
impl Unpin for V128
impl UnwindSafe for V128
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§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<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