Module columnar::common::index

source ·
Expand description

Traits for accessing elements by usize indexes.

There are several traits, with a core distinction being whether the returned reference depends on the lifetime of &self. For one trait Index the result does not depend on this lifetime. There is a third trait IndexMut that allows mutable access, that may be less commonly implemented.

Traits§

  • Types that can be converted into another type by copying.
  • A type that can be accessed by usize but without borrowing self.
  • A type that can be mutably accessed by usize.