mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-24 15:04:06 +00:00
Make Table<T> implement the IntoIterator trait
This commit is contained in:
parent
7cb42b9523
commit
4b11dced48
23 changed files with 209 additions and 182 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue