mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
Make Table<T> implement the IntoIterator trait
This commit is contained in:
@@ -12,7 +12,7 @@ pub trait RenderComplexity {
|
||||
|
||||
impl<T: RenderComplexity> RenderComplexity for Table<T> {
|
||||
fn render_complexity(&self) -> usize {
|
||||
self.iter_ref().map(|row| row.element.render_complexity()).fold(0, usize::saturating_add)
|
||||
self.iter().map(|row| row.element.render_complexity()).fold(0, usize::saturating_add)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user