glib::translate

Trait ToGlibPtrMut

Source
pub trait ToGlibPtrMut<'a, P: Copy> {
    type Storage;

    // Required method
    fn to_glib_none_mut(&'a mut self) -> StashMut<'_, P, Self>;
}
Expand description

Translate to a pointer with a mutable borrow.

Required Associated Types§

Required Methods§

Source

fn to_glib_none_mut(&'a mut self) -> StashMut<'_, P, Self>

Transfer: none.

The pointer in the Stash is only valid for the lifetime of the Stash.

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<'a, 'opt: 'a, P: Ptr, T: ToGlibPtrMut<'a, P>> ToGlibPtrMut<'a, P> for Option<&'opt mut T>

Implementors§

Source§

impl<'a, T: 'static, MM: BoxedMemoryManager<Target = T>> ToGlibPtrMut<'a, *mut T> for Boxed<T, MM>

Source§

type Storage = PhantomData<&'a mut Boxed<T, MM>>

Source§

impl<'a, T: TransparentPtrType + 'a> ToGlibPtrMut<'a, *mut <T as GlibPtrDefault>::GlibType> for PtrSlice<T>

Source§

impl<'a, T: TransparentPtrType + 'a> ToGlibPtrMut<'a, *mut GList> for List<T>

Source§

type Storage = PhantomData<&'a mut List<T>>

Source§

impl<'a, T: TransparentPtrType + 'a> ToGlibPtrMut<'a, *mut GSList> for SList<T>

Source§

type Storage = PhantomData<&'a mut SList<T>>

Source§

impl<'a, T: TransparentType + 'a> ToGlibPtrMut<'a, *mut <T as TransparentType>::GlibType> for Slice<T>

Source§

type Storage = PhantomData<&'a mut Slice<T>>