[][src]Macro rust_icu_common::simple_drop_impl

macro_rules! simple_drop_impl {
    ($type_name:ty, $impl_function_name:ident) => { ... };
}

type_name is the type to implement drop for. impl_function_name is the name of the function that implements memory deallocation. It is assumed that the type has an internal representation wrapped in a std::ptr::NonNull.

Example:

This example is not tested
pub struct UNumberFormatter {
  rep: std::ptr::NonNull<Foo>,
}
//...
simple_drop_impl!(UNumberFormatter, unumf_close);