Trait prettytable::Slice

source ·
pub trait Slice<'a, E> {
    type Output: 'a;

    // Required method
    fn slice(&'a self, arg: E) -> Self::Output;
}
Expand description

Trait implemented by types which can be sliced

Required Associated Types§

source

type Output: 'a

Type output after slicing

Required Methods§

source

fn slice(&'a self, arg: E) -> Self::Output

Get a slice from self

Implementors§

source§

impl<'a, T, E> Slice<'a, E> for T
where T: AsTableSlice, [Row]: Index<E, Output = [Row]>,

§

type Output = TableSlice<'a>