Trait GenericMatrix

Source
pub trait GenericMatrix: Sized {
    type Kind: MatrixKind;
    type Elem: Entity;

    // Required method
    fn as_ref(
        this: &Matrix<Self>,
    ) -> <Self::Kind as MatrixKind>::Ref<'_, Self::Elem>;
}
Expand description

Generic matrix trait.

Required Associated Types§

Source

type Kind: MatrixKind

Tag type.

Source

type Elem: Entity

Scalar element type.

Required Methods§

Source

fn as_ref( this: &Matrix<Self>, ) -> <Self::Kind as MatrixKind>::Ref<'_, Self::Elem>

Returns a view over the matrix.

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<E: Entity> GenericMatrix for DenseColMut<'_, E>

Source§

impl<E: Entity> GenericMatrix for DenseColOwn<E>

Source§

impl<E: Entity> GenericMatrix for DenseColRef<'_, E>

Source§

impl<E: Entity> GenericMatrix for DenseMut<'_, E>

Source§

impl<E: Entity> GenericMatrix for DenseOwn<E>

Source§

impl<E: Entity> GenericMatrix for DenseRef<'_, E>

Source§

impl<E: Entity> GenericMatrix for DenseRowMut<'_, E>

Source§

impl<E: Entity> GenericMatrix for DenseRowOwn<E>

Source§

impl<E: Entity> GenericMatrix for DenseRowRef<'_, E>

Source§

impl<E: Entity> GenericMatrix for DiagMut<'_, E>

Source§

impl<E: Entity> GenericMatrix for DiagOwn<E>

Source§

impl<E: Entity> GenericMatrix for DiagRef<'_, E>

Source§

impl<E: Entity> GenericMatrix for Scale<E>

Source§

impl<I: Index, E: Entity> GenericMatrix for PermMut<'_, I, E>

Source§

type Kind = Perm<I>

Source§

type Elem = E

Source§

impl<I: Index, E: Entity> GenericMatrix for PermOwn<I, E>

Source§

type Kind = Perm<I>

Source§

type Elem = E

Source§

impl<I: Index, E: Entity> GenericMatrix for PermRef<'_, I, E>

Source§

type Kind = Perm<I>

Source§

type Elem = E

Source§

impl<I: Index, E: Entity> GenericMatrix for SparseColMat<I, E>

Source§

impl<I: Index, E: Entity> GenericMatrix for SparseColMatMut<'_, I, E>

Source§

impl<I: Index, E: Entity> GenericMatrix for SparseColMatRef<'_, I, E>

Source§

impl<I: Index, E: Entity> GenericMatrix for SparseRowMat<I, E>

Source§

impl<I: Index, E: Entity> GenericMatrix for SparseRowMatMut<'_, I, E>

Source§

impl<I: Index, E: Entity> GenericMatrix for SparseRowMatRef<'_, I, E>