Closed AdrianVovk closed 1 month ago
Due to the trait impl orphan rules, this trait can't be implemented for all IsA<ListModel>
.
We could add a into_iter()
method on ListModelExtManual
but that would have to be called manually instead of just using a for loop like you wrote above. Do you think that's worth adding?
ugh orphan rules... right.
into_iter()
is essentially the same thing as .iter<glib::Object>()
so it's probably not worth adding. If it'll need to be a manual call you can already call .iter
manually. So closing
Bug description
The
IntoIter
impl for ListModel doesn't exist outside of the ListModel type itself; you can't use it from subclassesinstead you have to call
upcast_ref::<gio::ListModel>()
on itBacktrace