struct MutStr<'a, 'b> {
s: &'a mut &'b str
}
I'm scratching my head trying to understand this syntax.
Thanks in advance.
I have tried looking this syntax up everywhere and cannot find anything on two lifetimes on a single struct field.
struct MutStr<'a, 'b> {
s: &'a mut &'b str
}
I'm scratching my head trying to understand this syntax.
Thanks in advance.
I have tried looking this syntax up everywhere and cannot find anything on two lifetimes on a single struct field.