Trait DType

Source
pub trait DType:
    Sized
    + Copy
    + Add<Output = Self>
    + Div<Output = Self>
    + Mul<Output = Self>
    + Neg<Output = Self>
    + Rem<Output = Self>
    + Sub<Output = Self>
    + PartialOrd
    + Debug
    + Display
    + FromF32 {
Show 19 methods // Required methods fn powi(self, rhs: i32) -> Self; fn powf(self, rhs: Self) -> Self; fn spowf(self, rhs: Self) -> Self; fn rem_euclid(self, rhs: Self) -> Self; fn abs(self) -> Self; fn trunc(self) -> Self; fn max(self, other: Self) -> Self; fn min(self, other: Self) -> Self; fn sin(self) -> Self; fn cos(self) -> Self; fn to_degrees(self) -> Self; fn to_radians(self) -> Self; fn atan2(self, rhs: Self) -> Self; fn _fma(self, mul: Self, add: Self) -> Self; // Provided methods fn sqrt(self) -> Self { ... } fn cbrt(self) -> Self { ... } fn ssqrt(self) -> Self { ... } fn scbrt(self) -> Self { ... } fn fma(self, mul: Self, add: Self) -> Self { ... }
}
Expand description

Trait for all supported data types in colcon

Required Methods§

Source

fn powi(self, rhs: i32) -> Self

Source

fn powf(self, rhs: Self) -> Self

Source

fn spowf(self, rhs: Self) -> Self

Sign-agnostic powf

Source

fn rem_euclid(self, rhs: Self) -> Self

Source

fn abs(self) -> Self

Source

fn trunc(self) -> Self

Source

fn max(self, other: Self) -> Self

Source

fn min(self, other: Self) -> Self

Source

fn sin(self) -> Self

Source

fn cos(self) -> Self

Source

fn to_degrees(self) -> Self

Source

fn to_radians(self) -> Self

Source

fn atan2(self, rhs: Self) -> Self

Source

fn _fma(self, mul: Self, add: Self) -> Self

Provided Methods§

Source

fn sqrt(self) -> Self

Source

fn cbrt(self) -> Self

Source

fn ssqrt(self) -> Self

Source

fn scbrt(self) -> Self

Source

fn fma(self, mul: Self, add: Self) -> Self

Fused multiply-add if “fma” is enabled in rustc

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl DType for f32

Source§

fn powi(self, rhs: i32) -> Self

Source§

fn powf(self, rhs: Self) -> Self

Source§

fn spowf(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn abs(self) -> Self

Source§

fn trunc(self) -> Self

Source§

fn max(self, other: Self) -> Self

Source§

fn min(self, other: Self) -> Self

Source§

fn sin(self) -> Self

Source§

fn cos(self) -> Self

Source§

fn to_degrees(self) -> Self

Source§

fn to_radians(self) -> Self

Source§

fn atan2(self, rhs: Self) -> Self

Source§

fn sqrt(self) -> Self

Source§

fn _fma(self, mul: Self, add: Self) -> Self

Source§

impl DType for f64

Source§

fn powi(self, rhs: i32) -> Self

Source§

fn powf(self, rhs: Self) -> Self

Source§

fn spowf(self, rhs: Self) -> Self

Source§

fn rem_euclid(self, rhs: Self) -> Self

Source§

fn abs(self) -> Self

Source§

fn trunc(self) -> Self

Source§

fn max(self, other: Self) -> Self

Source§

fn min(self, other: Self) -> Self

Source§

fn sin(self) -> Self

Source§

fn cos(self) -> Self

Source§

fn to_degrees(self) -> Self

Source§

fn to_radians(self) -> Self

Source§

fn atan2(self, rhs: Self) -> Self

Source§

fn sqrt(self) -> Self

Source§

fn _fma(self, mul: Self, add: Self) -> Self

Implementors§