INNER CODE UNIT · Rust

drop

sonos/tract · api/proxy/src/lib.rs:32

            fn drop(&mut self) {
                unsafe {
                    sys::$dest(&mut self.0);
                }
            }
        }
    };
}

macro_rules! wrapper_clone {
    ($new_type:ident, $clone_fn:ident) => {
        impl Clone for $new_type {
            fn clone(&self) -> Self {
                let mut clone = null_mut();
                unsafe {
                    sys::$clone_fn(self.0, &mut clone);
                }
                $new_type(clone)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…