2 releases

Uses old Rust 2015

0.1.1 Feb 2, 2016
0.1.0 Feb 2, 2016

#14 in #leak

Download history 526/week @ 2024-05-22 454/week @ 2024-05-29 403/week @ 2024-06-05 496/week @ 2024-06-12 852/week @ 2024-06-19 775/week @ 2024-06-26 1046/week @ 2024-07-03 786/week @ 2024-07-10 974/week @ 2024-07-17 924/week @ 2024-07-24 1086/week @ 2024-07-31 1560/week @ 2024-08-07 1832/week @ 2024-08-14 1093/week @ 2024-08-21 1264/week @ 2024-08-28 947/week @ 2024-09-04

5,527 downloads per month
Used in 23 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