mozilla/rust — pull request #12299 by sfackler (2014-02-15 21:56:09+00:00)
Title: Add a method to LimitReader to return the limit

This is useful in contexts like this:

```rust
let size = rdr.read_be_i32() as uint;
let mut limit = LimitReader::new(rdr.by_ref(), size);
let thing = read_a_thing(&mut limit);
assert!(limit.limit() == 0);
```