Skip to main content

SignedVecN

Trait SignedVecN 

Source
pub trait SignedVecN<T: SignedNumber>: Neg<Output = Self> {
    // Required method
    fn minus_one() -> Self;
}
Expand description

trait for vectors of signed types to allow Neg

Required Methods§

Source

fn minus_one() -> Self

returns a vector initialised with -1

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> SignedVecN<T> for Vec2<T>
where T: SignedNumber,

Source§

impl<T> SignedVecN<T> for Vec3<T>
where T: SignedNumber,

Source§

impl<T> SignedVecN<T> for Vec4<T>
where T: SignedNumber,