Trait glib::translate::ToGlibPtr
[−]
[src]
pub trait ToGlibPtr<'a, P: Copy> { type Storage; fn to_glib_none(&self) -> Stash<'a, P, Self>; fn to_glib_full(&self) -> P { ... } }
Translate to a pointer.
Associated Types
type Storage
Required Methods
fn to_glib_none(&self) -> Stash<'a, P, Self>
Transfer: none.
The pointer in the Stash
is only valid for the lifetime of the Stash
.
Provided Methods
fn to_glib_full(&self) -> P
Transfer: full.
We transfer the ownership to the foreign library.
Implementors
impl<'a, P: Ptr, T: ToGlibPtr<'a, P>> ToGlibPtr<'a, P> for Option<T>
impl<'a> ToGlibPtr<'a, *const c_char> for &'a str
impl<'a> ToGlibPtr<'a, *const c_char> for String
impl<'a, S: AsRef<str>> ToGlibPtr<'a, *const *const c_char> for &'a [S]
impl<'a, P: Copy, T: ToGlibPtr<'a, P>> ToGlibPtr<'a, *mut P> for &'a [T]
impl<'a> ToGlibPtr<'a, *mut GHashTable> for HashMap<String, String>
impl<'a, T> ToGlibPtr<'a, *mut T> for VirtualRef<'a, T>
impl<'a, T> ToGlibPtr<'a, *mut T> for Option<&'a VirtualRef<'a, T>>
impl<'a, T, W: Wrapper<GlibType=T>> ToGlibPtr<'a, *mut T> for &'a W