Trait rustkell::DataList [] [src]

pub trait DataList {
    fn tails(&self) -> Tails<Self>
    where
        Self: Sized
; }

Operations on 'list'

Required Methods

The tails function returns all final segments of the list, longest first.

Example

use rustkell::DataList;
let v = vec![1,2,3,4];
for t in v.tails() {
    println!("{:?}", t.into_iter().collect::<Vec<_>>());
}

[1, 2, 3, 4]
[2, 3, 4]
[3, 4]
[4]
[]

Implementations on Foreign Types

impl<T> DataList for Vec<T>
[src]

[src]

Implementors