#cow #leak

leaky-cow

Leak the contents of a Clone-On-Write pointer

2 releases

Uses old Rust 2015

0.1.1 Feb 2, 2016
0.1.0 Feb 2, 2016

#1421 in Algorithms

Download history 578/week @ 2023-06-01 440/week @ 2023-06-08 697/week @ 2023-06-15 622/week @ 2023-06-22 459/week @ 2023-06-29 663/week @ 2023-07-06 442/week @ 2023-07-13 546/week @ 2023-07-20 594/week @ 2023-07-27 704/week @ 2023-08-03 798/week @ 2023-08-10 784/week @ 2023-08-17 632/week @ 2023-08-24 522/week @ 2023-08-31 681/week @ 2023-09-07 614/week @ 2023-09-14

2,549 downloads per month
Used in 15 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