Re: [rust-dev] Lifetime Questions

2013-01-23 Thread Niko Matsakis
Sami Nopanen wrote: 1. Why is the lifetime name sometimes before a type and sometimes after the type. There are two kinds of types which can be annotated with lifetime names. The first is a borrowed pointer:

[rust-dev] Lifetime Questions

2013-01-22 Thread Sami Nopanen
Hi, I'm trying to get my head around lifetime parameters. I think I mostly get them, for the simple cases anyway, but there are couple of examples that are leaving me confused. Copied some of the example code here from http://smallcultfollowing.com/babysteps/blog/2012/12/30/lifetime-notation/: