Skip to main content

HaveWAndOne

Trait HaveWAndOne 

Source
pub trait HaveWAndOne<T>: HaveW<T> {
    const W: Self;
    const ANA: Self = Self::W;

    // Provided methods
    fn ana(self) -> Self
       where Self: Add<Self, Output = Self> { ... }
    fn kata(self) -> Self
       where Self: Sub<Self, Output = Self> { ... }
}

Required Associated Constants§

Source

const W: Self

Provided Associated Constants§

Source

const ANA: Self = Self::W

+ W

Provided Methods§

Source

fn ana(self) -> Self
where Self: Add<Self, Output = Self>,

+ W

Source

fn kata(self) -> Self
where Self: Sub<Self, Output = Self>,

- W

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.

Implementors§

Source§

impl<T> HaveWAndOne<T> for Vector4<T>
where T: One + Zero,

Source§

const W: Self