News for hackers. Stuff that matters.
Re:Rust Lifetimes by dbaupp on Saturday October 31, 2015 @08:14PM (#10484838)
It's not clear from context in your comment if you're saying this, but, for `x: &'a T`, 'a is a bound in two ways:

- it is the maximum possible lifetime of the x variable itself,

- it is the minimum lifetime of the `T` instance x points to.

These are 100% related of course (x can't point to something that is invalid), but it is worth being careful about which end of a reference/pointer you're talking about when talking about validity.

Re:Rust Lifetimes by sixbrx on Sunday November 01, 2015 @07:17AM (#10486197)
Thanks for this comment, that clarifies things a lot for me. I think it should be in the docs (with equal brevity) if not already.
Re:Rust Lifetimes by steveklabnik on Sunday November 01, 2015 @09:06AM (#10486425)
I've made a note to check it out, thanks.