Skip to main content

HaveW

Trait HaveW 

Source
pub trait HaveW<T>: HaveZ<T> {
    const W_INDEX: usize = W_INDEX;

    // Required methods
    fn iter_xyzw<'a>(&'a self) -> impl Iterator<Item = &'a T>
       where T: 'a;
    fn iter_xyzw_mut<'a>(&'a mut self) -> impl Iterator<Item = &'a mut T>
       where T: 'a;
}

Provided Associated Constants§

Source

const W_INDEX: usize = W_INDEX

Required Methods§

Source

fn iter_xyzw<'a>(&'a self) -> impl Iterator<Item = &'a T>
where T: 'a,

Source

fn iter_xyzw_mut<'a>(&'a mut self) -> impl Iterator<Item = &'a mut T>
where T: 'a,

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> HaveW<Vector<T, 4>> for Matrix<T, 4, 4>

Source§

impl<T> HaveW<T> for Vector<T, 4>