Skip to main content

SignedIntOps

Trait SignedIntOps 

Source
pub trait SignedIntOps<T: Elem>: IntOps<T> {
    // Provided methods
    fn abs(self, x: Self::Simd) -> Self::Simd { ... }
    fn neg(self, x: Self::Simd) -> Self::Simd { ... }
}
Expand description

Operations on SIMD vectors with signed integer elements.

Provided Methods§

Source

fn abs(self, x: Self::Simd) -> Self::Simd

Compute the absolute value of x

Source

fn neg(self, x: Self::Simd) -> Self::Simd

Return -x.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§