You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking for some directions on how to implement IntoIterator for TicketStore.
from the test it looks like the returned iterator is expected to yield on a Ticket but the 'natural' iterator supplied by BTreeMap yields both the key and the value as documented here.
This confuses me:
what would be the associated types of the returned iterator?
can this be done without collecting (memory allocation) into a Vec first, for example, using a .map(|_, t| t). in that case, what should be the associated IntoIter type?
The text was updated successfully, but these errors were encountered:
Hey and thanks for this great repo!
I am looking for some directions on how to implement
IntoIterator
forTicketStore
.from the test it looks like the returned iterator is expected to yield on a
Ticket
but the 'natural' iterator supplied byBTreeMap
yields both the key and the value as documented here.This confuses me:
.map(|_, t| t)
. in that case, what should be the associatedIntoIter
type?The text was updated successfully, but these errors were encountered: