Trait faer_core::RowIndex

source ·
pub trait RowIndex<ColRange>: Seal + Sized {
    type Target;

    // Required method
    fn get(this: Self, col: ColRange) -> Self::Target;

    // Provided method
    unsafe fn get_unchecked(this: Self, col: ColRange) -> Self::Target { ... }
}
Expand description

Represents a type that can be used to slice a row, such as an index or a range of indices.

Required Associated Types§

source

type Target

Resulting type of the indexing operation.

Required Methods§

source

fn get(this: Self, col: ColRange) -> Self::Target

Index the row at col.

Provided Methods§

source

unsafe fn get_unchecked(this: Self, col: ColRange) -> Self::Target

Index the row at col, without bound checks.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, E: Entity> RowIndex<usize> for RowMut<'a, E>

§

type Target = <<E as Entity>::Group as ForType>::FaerOf<&'a mut <E as Entity>::Unit>

source§

impl<'a, E: Entity> RowIndex<usize> for RowRef<'a, E>

§

type Target = <<E as Entity>::Group as ForType>::FaerOf<&'a <E as Entity>::Unit>

source§

impl<E: Entity> RowIndex<Range<usize>> for RowMut<'_, E>

§

type Target = Matrix<DenseRowMut<'_, E>>

source§

impl<E: Entity> RowIndex<Range<usize>> for RowRef<'_, E>

§

type Target = Matrix<DenseRowRef<'_, E>>

source§

impl<E: Entity> RowIndex<RangeFrom<usize>> for RowMut<'_, E>

§

type Target = Matrix<DenseRowMut<'_, E>>

source§

impl<E: Entity> RowIndex<RangeFrom<usize>> for RowRef<'_, E>

§

type Target = Matrix<DenseRowRef<'_, E>>

source§

impl<E: Entity> RowIndex<RangeFull> for RowMut<'_, E>

§

type Target = Matrix<DenseRowMut<'_, E>>

source§

impl<E: Entity> RowIndex<RangeFull> for RowRef<'_, E>

§

type Target = Matrix<DenseRowRef<'_, E>>

source§

impl<E: Entity> RowIndex<RangeInclusive<usize>> for RowMut<'_, E>

§

type Target = Matrix<DenseRowMut<'_, E>>

source§

impl<E: Entity> RowIndex<RangeInclusive<usize>> for RowRef<'_, E>

§

type Target = Matrix<DenseRowRef<'_, E>>

source§

impl<E: Entity> RowIndex<RangeTo<usize>> for RowMut<'_, E>

§

type Target = Matrix<DenseRowMut<'_, E>>

source§

impl<E: Entity> RowIndex<RangeTo<usize>> for RowRef<'_, E>

§

type Target = Matrix<DenseRowRef<'_, E>>

source§

impl<E: Entity> RowIndex<RangeToInclusive<usize>> for RowMut<'_, E>

§

type Target = Matrix<DenseRowMut<'_, E>>

source§

impl<E: Entity> RowIndex<RangeToInclusive<usize>> for RowRef<'_, E>

§

type Target = Matrix<DenseRowRef<'_, E>>