Trait e_utils::parse::CAutoParse
source · pub unsafe trait CAutoParse {
// Required methods
unsafe fn c_to_cstring(&self) -> CString;
unsafe fn c_to_string(&self) -> String;
fn c_to_ptr(self) -> *const c_void;
fn c_to_mut_ptr(self) -> *mut c_void;
unsafe fn c_to_any<T>(self) -> Option<Box<T>>;
}Expand description
针对C/C++
Required Methods§
sourceunsafe fn c_to_cstring(&self) -> CString
unsafe fn c_to_cstring(&self) -> CString
C转CsString
sourceunsafe fn c_to_string(&self) -> String
unsafe fn c_to_string(&self) -> String
C转String
sourcefn c_to_mut_ptr(self) -> *mut c_void
fn c_to_mut_ptr(self) -> *mut c_void
安全地获取<Box
Object Safety§
This trait is not object safe.