Trait FromGlibPtrFull

Source
pub trait FromGlibPtrFull<P: Ptr>: Sized {
    // Required method
    unsafe fn from_glib_full(ptr: P) -> Self;
}
Expand description

Translate from a pointer type taking ownership, transfer: full.

Required Methods§

Source

unsafe fn from_glib_full(ptr: P) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromGlibPtrFull<*const i8> for String

Source§

unsafe fn from_glib_full(ptr: *const c_char) -> Self

Source§

impl FromGlibPtrFull<*const i8> for OsString

Source§

unsafe fn from_glib_full(ptr: *const c_char) -> Self

Source§

impl FromGlibPtrFull<*const i8> for PathBuf

Source§

unsafe fn from_glib_full(ptr: *const c_char) -> Self

Source§

impl FromGlibPtrFull<*mut i8> for String

Source§

unsafe fn from_glib_full(ptr: *mut c_char) -> Self

Source§

impl FromGlibPtrFull<*mut i8> for OsString

Source§

unsafe fn from_glib_full(ptr: *mut c_char) -> Self

Source§

impl FromGlibPtrFull<*mut i8> for PathBuf

Source§

unsafe fn from_glib_full(ptr: *mut c_char) -> Self

Source§

impl<P: Ptr, T: FromGlibPtrFull<P>> FromGlibPtrFull<P> for Option<T>

Source§

unsafe fn from_glib_full(ptr: P) -> Option<T>

Implementors§