I’ve got problem related to return a raw pointer and
Iterator trait. Look at the code, please.
As I get I should point how many time the value that is returned lives, right? And actually it should live shorter than
'a but I point
type Item = &'a mut u32 because I don’t understand how to introduce new lifetime parameter. As far as I get a lifetime parameter is bound to some property and I don’t see where to bound new one. There is should be a lifetime
'b that is covered by
'a. So this lifetime will be actual for
type Item in the
Iterator implementation. Does it make sense? If yes, how to introduce it? If not, how can I get this code compiled?