Crate safetruct

Source
Expand description

this crate just provides simple macro to implement safe struct which drops a value when it goes out of the scope

Macrosยง

safetruct
call this macro this way : safetruct!(visibility of your struct , name_of_that_value : its type , name_of_the_allocator_func , name_of_the_deallocator_func);