[][src]Trait pdf::backend::IndexRange

pub trait IndexRange {
    fn start(&self) -> Option<usize> { ... }
fn end(&self) -> Option<usize> { ... }
fn to_range(&self, len: usize) -> Result<Range<usize>> { ... } }

IndexRange is implemented by Rust's built-in range types, produced by range syntax like .., a.., ..b or c..d.

Provided methods

fn start(&self) -> Option<usize>[src]

Start index (inclusive)

fn end(&self) -> Option<usize>[src]

End index (exclusive)

fn to_range(&self, len: usize) -> Result<Range<usize>>[src]

len: the size of whatever container that is being indexed

Loading content...

Implementations on Foreign Types

impl IndexRange for RangeFull[src]

impl IndexRange for RangeFrom<usize>[src]

impl IndexRange for RangeTo<usize>[src]

impl IndexRange for Range<usize>[src]

Loading content...

Implementors

Loading content...