Skip to main content

MatrixColumn

Trait MatrixColumn 

Source
pub trait MatrixColumn {
    type Column;

    // Required method
    fn column(&self, i: usize) -> Self::Column;
}
Expand description

Extension trait for matrix column access (like nalgebra’s .column())

Required Associated Types§

Source

type Column

The column type returned by column().

Required Methods§

Source

fn column(&self, i: usize) -> Self::Column

Returns the i-th column of this matrix.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Copy> MatrixColumn for [T; 2]

Source§

type Column = T

Source§

fn column(&self, i: usize) -> Self::Column

Source§

impl<T: Scalar> MatrixColumn for Matrix2<T>

Available on non-SPIR-V only.
Source§

type Column = Matrix<T, Const<2>, Const<1>, ArrayStorage<T, 2, 1>>

Source§

fn column(&self, i: usize) -> Self::Column

Source§

impl<T: Scalar> MatrixColumn for Matrix3<T>

Available on non-SPIR-V only.
Source§

type Column = Matrix<T, Const<3>, Const<1>, ArrayStorage<T, 3, 1>>

Source§

fn column(&self, i: usize) -> Self::Column

Implementors§