columnar::common::index

Trait IndexMut

Source
pub trait IndexMut {
    type IndexMut<'a>
       where Self: 'a;

    // Required method
    fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>;

    // Provided method
    fn last_mut(&mut self) -> Option<Self::IndexMut<'_>>
       where Self: Len { ... }
}
Expand description

A type that can be mutably accessed by usize.

Required Associated Types§

Source

type IndexMut<'a> where Self: 'a

Type mutably referencing an indexed element.

Required Methods§

Source

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Provided Methods§

Source

fn last_mut(&mut self) -> Option<Self::IndexMut<'_>>
where Self: Len,

A reference to the last element, should one exist.

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.

Implementations on Foreign Types§

Source§

impl<'t, T: IndexMut + ?Sized> IndexMut for &'t mut T

Source§

type IndexMut<'a> = <T as IndexMut>::IndexMut<'a> where Self: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut> IndexMut for (A,)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>,) where A: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut, B: IndexMut> IndexMut for (A, B)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>, <B as IndexMut>::IndexMut<'a>) where A: 'a, B: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut, B: IndexMut, C: IndexMut> IndexMut for (A, B, C)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>, <B as IndexMut>::IndexMut<'a>, <C as IndexMut>::IndexMut<'a>) where A: 'a, B: 'a, C: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut, B: IndexMut, C: IndexMut, D: IndexMut> IndexMut for (A, B, C, D)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>, <B as IndexMut>::IndexMut<'a>, <C as IndexMut>::IndexMut<'a>, <D as IndexMut>::IndexMut<'a>) where A: 'a, B: 'a, C: 'a, D: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut, B: IndexMut, C: IndexMut, D: IndexMut, E: IndexMut> IndexMut for (A, B, C, D, E)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>, <B as IndexMut>::IndexMut<'a>, <C as IndexMut>::IndexMut<'a>, <D as IndexMut>::IndexMut<'a>, <E as IndexMut>::IndexMut<'a>) where A: 'a, B: 'a, C: 'a, D: 'a, E: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut, B: IndexMut, C: IndexMut, D: IndexMut, E: IndexMut, F: IndexMut> IndexMut for (A, B, C, D, E, F)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>, <B as IndexMut>::IndexMut<'a>, <C as IndexMut>::IndexMut<'a>, <D as IndexMut>::IndexMut<'a>, <E as IndexMut>::IndexMut<'a>, <F as IndexMut>::IndexMut<'a>) where A: 'a, B: 'a, C: 'a, D: 'a, E: 'a, F: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut, B: IndexMut, C: IndexMut, D: IndexMut, E: IndexMut, F: IndexMut, G: IndexMut> IndexMut for (A, B, C, D, E, F, G)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>, <B as IndexMut>::IndexMut<'a>, <C as IndexMut>::IndexMut<'a>, <D as IndexMut>::IndexMut<'a>, <E as IndexMut>::IndexMut<'a>, <F as IndexMut>::IndexMut<'a>, <G as IndexMut>::IndexMut<'a>) where A: 'a, B: 'a, C: 'a, D: 'a, E: 'a, F: 'a, G: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut, B: IndexMut, C: IndexMut, D: IndexMut, E: IndexMut, F: IndexMut, G: IndexMut, H: IndexMut> IndexMut for (A, B, C, D, E, F, G, H)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>, <B as IndexMut>::IndexMut<'a>, <C as IndexMut>::IndexMut<'a>, <D as IndexMut>::IndexMut<'a>, <E as IndexMut>::IndexMut<'a>, <F as IndexMut>::IndexMut<'a>, <G as IndexMut>::IndexMut<'a>, <H as IndexMut>::IndexMut<'a>) where A: 'a, B: 'a, C: 'a, D: 'a, E: 'a, F: 'a, G: 'a, H: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut, B: IndexMut, C: IndexMut, D: IndexMut, E: IndexMut, F: IndexMut, G: IndexMut, H: IndexMut, I: IndexMut> IndexMut for (A, B, C, D, E, F, G, H, I)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>, <B as IndexMut>::IndexMut<'a>, <C as IndexMut>::IndexMut<'a>, <D as IndexMut>::IndexMut<'a>, <E as IndexMut>::IndexMut<'a>, <F as IndexMut>::IndexMut<'a>, <G as IndexMut>::IndexMut<'a>, <H as IndexMut>::IndexMut<'a>, <I as IndexMut>::IndexMut<'a>) where A: 'a, B: 'a, C: 'a, D: 'a, E: 'a, F: 'a, G: 'a, H: 'a, I: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<A: IndexMut, B: IndexMut, C: IndexMut, D: IndexMut, E: IndexMut, F: IndexMut, G: IndexMut, H: IndexMut, I: IndexMut, J: IndexMut> IndexMut for (A, B, C, D, E, F, G, H, I, J)

Source§

type IndexMut<'a> = (<A as IndexMut>::IndexMut<'a>, <B as IndexMut>::IndexMut<'a>, <C as IndexMut>::IndexMut<'a>, <D as IndexMut>::IndexMut<'a>, <E as IndexMut>::IndexMut<'a>, <F as IndexMut>::IndexMut<'a>, <G as IndexMut>::IndexMut<'a>, <H as IndexMut>::IndexMut<'a>, <I as IndexMut>::IndexMut<'a>, <J as IndexMut>::IndexMut<'a>) where A: 'a, B: 'a, C: 'a, D: 'a, E: 'a, F: 'a, G: 'a, H: 'a, I: 'a, J: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<T> IndexMut for [T]

Source§

type IndexMut<'a> = &'a mut T where Self: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Source§

impl<T> IndexMut for Vec<T>

Source§

type IndexMut<'a> = &'a mut T where Self: 'a

Source§

fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>

Implementors§

Source§

impl IndexMut for Isizes

Source§

type IndexMut<'a> = &'a mut i64

Source§

impl IndexMut for Usizes

Source§

type IndexMut<'a> = &'a mut u64

Source§

impl<CC> IndexMut for Empties<CC>

Source§

type IndexMut<'a> = &'a mut () where CC: 'a

Source§

impl<S: IndexMut> IndexMut for Slice<S>

Source§

type IndexMut<'a> = <S as IndexMut>::IndexMut<'a> where S: 'a

Source§

impl<SC: IndexMut, TC: IndexMut, CC: IndexAs<u64> + Len, VC: IndexAs<u64> + Len> IndexMut for Results<SC, TC, CC, VC>

Source§

type IndexMut<'a> = Result<<SC as IndexMut>::IndexMut<'a>, <TC as IndexMut>::IndexMut<'a>> where SC: 'a, TC: 'a, CC: 'a, VC: 'a

Source§

impl<TC, BC: Len + IndexAs<u64>> IndexMut for Vecs<TC, BC>

Source§

type IndexMut<'a> = Slice<&'a mut TC> where TC: 'a, BC: 'a

Source§

impl<TC: IndexMut, CC: IndexAs<u64> + Len, VC: IndexAs<u64> + Len> IndexMut for Options<TC, CC, VC>

Source§

type IndexMut<'a> = Option<<TC as IndexMut>::IndexMut<'a>> where TC: 'a, CC: 'a, VC: 'a