Make List::new
accept IntoIterator
#670
Labels
Effort: Good First Issue
Good for newcomers without much Rust or Ratatui experiance. Apply only if willing to help implement
Type: Breaking Change
This change will cause application code to break and must be noted in the breaking changes docs etc.
Type: Enhancement
New feature or request
Milestone
Problem
Currently we have to write something like this to create a list.
Would be nice and natural to be able to write
Solution
Make
List::new
acceptIntoIterator<Item = Into<ListItem>>
.Unfortunately this seems to be breaking bug, especially for empty lists as the compiler cannot infer
::Item
's typeAlternatives
Leave as is
Additional context
This should probably be worked on after #669 is merged.
The text was updated successfully, but these errors were encountered: