derive_destructure2_examples 0.1.4

Examples for crate derive_destructure2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![allow(dead_code)]

pub mod examples;

use derive_destructure2::*;

#[derive(destructure, remove_trait_impls)]
pub struct ImplementsDrop {
    some_str: String,
    some_int: i32,
}

impl Drop for ImplementsDrop {
    fn drop(&mut self) {
        panic!("We don't want to drop this");
    }
}