Trait brassfibre::prelude::RowIndex [] [src]

pub trait RowIndex<'s>: Sized {
    type Key;
    type Row;
    fn len(&'s self) -> usize;
    fn reindex<'l>(&'s self, labels: &'l [Self::Key]) -> Self;
    fn reindex_by_index<'l>(&'s self, locations: &'l [usize]) -> Self;
    fn loc<'l>(&'s self, label: &'l Self::Key) -> Self::Row;
    fn iloc<'l>(&'s self, location: &'l usize) -> Self::Row;
    fn blocs<'l>(&'s self, flags: &'l [bool]) -> Self;

    fn head(&'s self, n: usize) -> Self { ... }
    fn tail(&'s self, n: usize) -> Self { ... }
    fn locs<'l>(&'s self, labels: &'l [Self::Key]) -> Self { ... }
    fn ilocs<'l>(&'s self, locations: &'l [usize]) -> Self { ... }
}

Indexing methods for Index(Row)

Associated Types

Required Methods

Get a single value corresponding to given label (slice by LOCation)

Get a single value corresponding to given index (slice by Index LOCation)

Slice using given Vec (slice by Bool LOCationS)

Provided Methods

Slice using given labels (slice by LOCationS)

Slice using given indices (slice by Index LOCationS)

Implementors