Trait SignOps

Source
pub trait SignOps {
    // Required methods
    fn ptcopysign(self, sign: Self) -> Self;
    fn ptsignum(self) -> i8;
    fn abs(self) -> Self;
}

Required Methods§

Source

fn ptcopysign(self, sign: Self) -> Self

Source

fn ptsignum(self) -> i8

Source

fn abs(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.

Implementations on Foreign Types§

Source§

impl SignOps for bool

Source§

fn ptcopysign(self, sign: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for f32

Source§

fn ptcopysign(self, sign: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for f64

Source§

fn ptcopysign(self, sign: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for i8

Source§

fn ptcopysign(self, sign: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for i16

Source§

fn ptcopysign(self, sign: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for i32

Source§

fn ptcopysign(self, sign: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for i64

Source§

fn ptcopysign(self, sign: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for i128

Source§

fn ptcopysign(self, sign: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for isize

Source§

fn ptcopysign(self, sign: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for u8

Source§

fn ptcopysign(self, _: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for u16

Source§

fn ptcopysign(self, _: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for u32

Source§

fn ptcopysign(self, _: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for u64

Source§

fn ptcopysign(self, _: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for u128

Source§

fn ptcopysign(self, _: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Source§

impl SignOps for usize

Source§

fn ptcopysign(self, _: Self) -> Self

Source§

fn ptsignum(self) -> i8

Source§

fn abs(self) -> Self

Implementors§

Source§

impl<T> SignOps for Matrix3<T>

Source§

impl<T> SignOps for Matrix4<T>

Source§

impl<T> SignOps for Vector3<T>

Source§

impl<T> SignOps for Vector4<T>

Source§

impl<T> SignOps for Euler<T>

Source§

impl<T> SignOps for Quaternion<T>
where T: SignOps + Add<T, Output = T>,