mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Added DoubleEndedIterator for MutFlowListIterator
This commit is contained in:
parent
0c9d0eb685
commit
5c7943217b
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@ impl<'a> DoubleEndedIterator for FlowListIterator<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> DoubleEndedIterator for MutFlowListIterator<'a> {
|
||||
fn next_back(&mut self) -> Option<&'a mut Flow> {
|
||||
self.it.next_back().map(flow_ref::deref_mut)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Iterator for MutFlowListIterator<'a> {
|
||||
type Item = &'a mut Flow;
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue