Trait Indexedpub

Source
:trait(pub) Indexed
  .at ( AnyInt (Self elem)  (Option elem) )
  .size ( (Self elem)  AnyInt )
Description

Trait for collections with positional access by integer index.

Required Methods

.at ( AnyInt (Self elem) (Option elem) )

Return Some elem at zero-based index i, or None if i is out of bounds. ( AnyInt (Self elem) -> (Option elem) )

.size ( (Self elem) AnyInt )

Return the number of elements in the collection. ( (Self elem) -> AnyInt )

Implementors

impl Indexed for Vec