Trait zeroconf::ffi::CloneRaw[][src]

pub trait CloneRaw<T: FromRaw<T> + Clone> {
    unsafe fn clone_raw(raw: *mut c_void) -> Box<T> { ... }
}
Expand description

Helper trait to convert and clone a raw *mut c_void to it’s rust type

Provided methods

Converts and clones the specified *mut c_void to a Box<T>.

Safety

This function is unsafe due to a call to the unsafe function FromRaw::from_raw().

Implementors