Trait extendr_api::prelude::row::RowIndex

pub trait RowIndex<ColRange>: Sized + Seal {
    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§

type Target

Resulting type of the indexing operation.

Required Methods§

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

Index the row at col.

Provided Methods§

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§

§

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

§

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

§

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

§

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

§

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

§

type Target = RowMut<'_, E>

§

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

§

type Target = RowRef<'_, E>

§

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

§

type Target = RowMut<'_, E>

§

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

§

type Target = RowRef<'_, E>

§

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

§

type Target = RowMut<'_, E>

§

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

§

type Target = RowRef<'_, E>

§

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

§

type Target = RowMut<'_, E>

§

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

§

type Target = RowRef<'_, E>

§

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

§

type Target = RowMut<'_, E>

§

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

§

type Target = RowRef<'_, E>

§

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

§

type Target = RowMut<'_, E>

§

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

§

type Target = RowRef<'_, E>