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);
}

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

Implementations on Foreign Types

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

[src]

impl<'a, T> DataList for Iter<'a, T>
[src]

[src]

impl<'a, T> DataList for &'a [T]
[src]

[src]

Implementors