pub fn in_range(&self, start: Index, end: Index) -> Option<Entries> {
        let count = self.len() as usize;
        let start_index = to_absolute_index(start, count)?;
        if start_index >= count {
            return None;
        }
        let end_index = to_absolute_index(end, count)?;

        self.current_lseq().map(|lseq| {
            lseq.iter()
                .enumerate()
                .filter(|(i, _)| i >= &start_index && i < &end_index)
                .map(|(_, entry)| entry.clone())
                .collect::<Entries>()
        })
    }
/// Gets a list of items which are within the given indices.
/// Note the range of items is [start, end), i.e. the end index is not inclusive.
Gets a list of items which are within the given indices.
Note the range of items is [start, end), i.e. the end index is not inclusive.
Gets a list of items which are within the given indices . Note the range of items is [ start end ) i . e . the end index is not inclusive .
pub fn in_range(&self, start: Index, end: Index) -> Option<Entries> {
        let count = self.len() as usize;
        let start_index = to_absolute_index(start, count)?;
        if start_index >= count {
            return None;
        }
        let end_index = to_absolute_index(end, count)?;
        self.current_lseq().map(|lseq| {
            lseq.iter()
                .enumerate()
                .filter(|(i, _)| i >= &start_index && i < &end_index)
                .map(|(_, entry)| entry.clone())
                .collect::<Entries>()
        })
    }
pub fn in_range ( & self , start : Index , end : Index ) -> Option < Entries > { let count = self . len ( ) as usize ; let start_index = to_absolute_index ( start , count ) ? ; if start_index >= count { return None ; } let end_index = to_absolute_index ( end , count ) ? ; self . current_lseq ( ) . map ( | lseq | { lseq . iter ( ) . enumerate ( ) . filter ( | ( i , _ ) | i >= & start_index && i < & end_index ) . map ( | ( _ , entry ) | entry . clone ( ) ) . collect :: < Entries > ( ) } ) }
Gets a list of items which are within the given indices.
Gets a list of items which are within the given indices .
&self
start
Index
end
Index
&self
start
Index
end
Index