Trait rotary::range::Range[][src]

pub trait Range {
    fn offset(self, offset: usize) -> Offset<Self>
    where
        Self: Sized + Range
, { ... }
fn chunk(self, n: usize, len: usize) -> Chunk<Self>
    where
        Self: Sized + Range
, { ... } }

A range that can be used in combination with copying data.

Provided methods

fn offset(self, offset: usize) -> Offset<Self> where
    Self: Sized + Range
[src]

Construct a range with the given offset from the starting element.

fn chunk(self, n: usize, len: usize) -> Chunk<Self> where
    Self: Sized + Range
[src]

Construct a range which corresponds to the chunk with len and position n.

Which is the range n * len .. n * len + len.

Loading content...

Implementors

impl Range for Chunk<Offset<Full>>[src]

impl Range for Full[src]

impl Range for Offset<Full>[src]

Loading content...