Trait attr::IndexableAttr [] [src]

pub trait IndexableAttr<Type: ?Sized, Idx: ?Sized>: Attr<Type> {
    type Output;
    fn at(&self, i: Type, idx: Idx) -> Self::Output;
}

Access to a part of the attribute by index

This can be used to provide access to parts of a vector

Associated Types

The resulting value when accessing the attribute

Required Methods

Implementation of the indexing operation

Implementors