- InvalidShutdownScript { inner: Box::into_raw(Box::new(nativeInvalidShutdownScript {
- script: ::bitcoin::blockdata::script::Script::from(script_arg.into_rust()),
- })), is_owned: true }
+ InvalidShutdownScript { inner: ObjOps::heap_alloc(nativeInvalidShutdownScript {
+ script: ::bitcoin::blockdata::script::ScriptBuf::from(script_arg.into_rust()),
+ }), is_owned: true }
+}
+impl Clone for InvalidShutdownScript {
+ fn clone(&self) -> Self {
+ Self {
+ inner: if <*mut nativeInvalidShutdownScript>::is_null(self.inner) { core::ptr::null_mut() } else {
+ ObjOps::heap_alloc(unsafe { &*ObjOps::untweak_ptr(self.inner) }.clone()) },
+ is_owned: true,
+ }
+ }
+}
+#[allow(unused)]
+/// Used only if an object of this type is returned as a trait impl by a method
+pub(crate) extern "C" fn InvalidShutdownScript_clone_void(this_ptr: *const c_void) -> *mut c_void {
+ Box::into_raw(Box::new(unsafe { (*(this_ptr as *const nativeInvalidShutdownScript)).clone() })) as *mut c_void