Trait anim::Cursor[][src]

pub trait Cursor {
    type Item;
    fn size(&self) -> Option<usize>;
fn index(&self, n: usize) -> Self::Item; }
Expand description

like Iterator, but does not consume any element

built-in types that derives Cursor

  • Vec<T>
  • [T]
  • &[T]
  • Box<T> where T:Cursor
  • &T where T:Cursor

Associated Types

item of the cursor

Required methods

none means that it’s infinite

seek to specified element

Implementations on Foreign Types

Implementors