diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/layout/flow_list.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/components/layout/flow_list.rs b/components/layout/flow_list.rs index 5a0d389f5da..c9bbe0d7cd8 100644 --- a/components/layout/flow_list.rs +++ b/components/layout/flow_list.rs @@ -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] |