Macro rust_icu_common::simple_drop_impl [−][src]
macro_rules! simple_drop_impl { ($type_name:ty, $impl_function_name:ident) => { ... }; }
Expand description
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:
ⓘ
pub struct UNumberFormatter { rep: std::ptr::NonNull<Foo>, } //... simple_drop_impl!(UNumberFormatter, unumf_close);