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§
fn powi(self, rhs: i32) -> Self
fn powf(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
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.