LocationRangeExt

Trait LocationRangeExt 

Source
pub trait LocationRangeExt {
    // Required method
    fn to_usize_range(&self) -> Range<usize>;
}
Expand description

Extension trait for converting Range<Location> into other range types.

Required Methods§

Source

fn to_usize_range(&self) -> Range<usize>

Convert a Range<Location> to a Range<usize> suitable for slice indexing.

Implementations on Foreign Types§

Source§

impl LocationRangeExt for Range<Location>

Implementors§