diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-02-15 13:51:37 -0800 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2014-02-15 14:22:56 -0800 |
| commit | 23fdbcf7dddca3aae0ab02ee205344659f33abcb (patch) | |
| tree | f407ce7495e666fe33fb62b0f0d44a4aeca7f7d7 /src/libstd/sync/spsc_queue.rs | |
| parent | a7aa4c477e7ccc51f19805c42b74cf22dfe22c39 (diff) | |
| download | rust-23fdbcf7dddca3aae0ab02ee205344659f33abcb.tar.gz rust-23fdbcf7dddca3aae0ab02ee205344659f33abcb.zip | |
Add a method to LimitReader to return the limit
This is useful in contexts like this: 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);
Diffstat (limited to 'src/libstd/sync/spsc_queue.rs')
0 files changed, 0 insertions, 0 deletions
