drop-box 0.1.0

A smart pointer that allows you to automatically run a callback when a value is dropped.
Documentation
1
2
3
4
5
6
7
8
use std::str::FromStr;

fn main() {
    let drop_string = drop_box::DropBox::new("UwU".to_owned(), |s| {
        println!("Drop function called for {}", s)
    });
    println!("My drop string is: {}", drop_string.to_owned());
}