Trait anyrange::AnyRange [] [src]

pub trait AnyRange<Index> {
    fn start(&self) -> Option<Index>;
    fn end(&self) -> Option<Index>;

    fn to_range(&self, start: Index, end: Index) -> Range<Index> { ... }
}

Required Methods

returns Sone(s) if a start has been specified

returns Sone(s) if an end has been specified

Provided Methods

converts this range into a concrete std::ops::Range<Index> by defaulting non-existant bounds to the given start/end values

Implementors