Open arcnmx opened 11 months ago
A Rust wrapper around WpIteratorMethods could be somewhat useful:
WpIteratorMethods
IteratorMethods
WpIterator::with_impl(methods: IteratorMethods)
WpIterator::new(iter: impl IteratorMethods)
T: Iterator<impl ToValue>
reset()
WpIterator::empty()
GPtrArray
impl Default for WpIterator
ValueIterator<T>::new(iter: impl IteratorMethods<T>)
ValueIterator::empty()
T: StaticType
Default
A Rust wrapper around
WpIteratorMethods
could be somewhat useful:IteratorMethods
wrapper type or traitWpIterator::with_impl(methods: IteratorMethods)
orWpIterator::new(iter: impl IteratorMethods)
or somethingT: Iterator<impl ToValue>
reset()
, which isn't really doable without cloning the initial state or somethingWpIterator::empty()
usingIteratorMethods
(stop usingGPtrArray
)impl Default for WpIterator
?ValueIterator<T>::new(iter: impl IteratorMethods<T>)
ValueIterator::empty()
(note:T: StaticType
bound isn't necessary)Default
impl as well