}
}
}
+#[no_mangle]
+/// Creates a new Bech32Error which has the same data as `orig`
+pub extern "C" fn Bech32Error_clone(orig: &Bech32Error) -> Bech32Error { orig.clone() }
+#[no_mangle]
+/// Releases any memory held by the given `Bech32Error` (which is currently none)
+pub extern "C" fn Bech32Error_free(o: Bech32Error) { }
#[repr(C)]
#[derive(Clone, Copy, PartialEq)]
}
impl Clone for Str {
fn clone(&self) -> Self {
- self.into_str().clone().into()
+ String::from(self.into_str()).into()
}
}