Trait faer::col::ColIndex

source ·
pub trait ColIndex<RowRange>: Seal + Sized {
    type Target;

    // Required method
    fn get(this: Self, row: RowRange) -> Self::Target;

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

Represents a type that can be used to slice a column, 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, row: RowRange) -> Self::Target

Index the column at row.

Provided Methods§

source

unsafe fn get_unchecked(this: Self, row: RowRange) -> Self::Target

Index the column at row, without bound checks.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, E: Entity> ColIndex<usize> for ColMut<'a, E>

§

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

source§

impl<'a, E: Entity> ColIndex<usize> for ColRef<'a, E>

§

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

source§

impl<E: Entity> ColIndex<Range<usize>> for ColMut<'_, E>

§

type Target = ColMut<'_, E>

source§

impl<E: Entity> ColIndex<Range<usize>> for ColRef<'_, E>

§

type Target = ColRef<'_, E>

source§

impl<E: Entity> ColIndex<RangeFrom<usize>> for ColMut<'_, E>

§

type Target = ColMut<'_, E>

source§

impl<E: Entity> ColIndex<RangeFrom<usize>> for ColRef<'_, E>

§

type Target = ColRef<'_, E>

source§

impl<E: Entity> ColIndex<RangeFull> for ColMut<'_, E>

§

type Target = ColMut<'_, E>

source§

impl<E: Entity> ColIndex<RangeFull> for ColRef<'_, E>

§

type Target = ColRef<'_, E>

source§

impl<E: Entity> ColIndex<RangeInclusive<usize>> for ColMut<'_, E>

§

type Target = ColMut<'_, E>

source§

impl<E: Entity> ColIndex<RangeInclusive<usize>> for ColRef<'_, E>

§

type Target = ColRef<'_, E>

source§

impl<E: Entity> ColIndex<RangeTo<usize>> for ColMut<'_, E>

§

type Target = ColMut<'_, E>

source§

impl<E: Entity> ColIndex<RangeTo<usize>> for ColRef<'_, E>

§

type Target = ColRef<'_, E>

source§

impl<E: Entity> ColIndex<RangeToInclusive<usize>> for ColMut<'_, E>

§

type Target = ColMut<'_, E>

source§

impl<E: Entity> ColIndex<RangeToInclusive<usize>> for ColRef<'_, E>

§

type Target = ColRef<'_, E>