2 releases

Uses old Rust 2015

0.1.1 Feb 2, 2016
0.1.0 Feb 2, 2016

#19 in #leak

Download history 13300/week @ 2023-12-18 321/week @ 2023-12-25 3358/week @ 2024-01-01 3843/week @ 2024-01-08 3288/week @ 2024-01-15 2646/week @ 2024-01-22 494/week @ 2024-01-29 303/week @ 2024-02-05 422/week @ 2024-02-12 274/week @ 2024-02-19 3339/week @ 2024-02-26 563/week @ 2024-03-04 538/week @ 2024-03-11 560/week @ 2024-03-18 544/week @ 2024-03-25 465/week @ 2024-04-01

2,165 downloads per month
Used in 17 crates (via io-surface)

MIT/Apache

2KB

Leaky cows

Build Status

Documentation

Adds a leak() method to Rust's Clone-On-Write pointer.


lib.rs:

Leaky cows: convert a clone-on-write reference into a plain reference. If it's just the plain reference, just return that. If it's the owned structure, leak it and return a reference to it.

Dependencies

~4KB