pub trait ToGlibPtr<'a, P: Copy> {
    type Storage;
    fn to_glib_none(&'a self) -> Stash<'a, P, Self>;

    fn to_glib_container(&'a self) -> Stash<'a, P, Self> { ... }
    fn to_glib_full(&self) -> P { ... }
}
Expand description

Translate to a pointer.

Associated Types

Required methods

Transfer: none.

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

Provided methods

Transfer: container.

We transfer the container ownership to the foreign library retaining the elements ownership.

Transfer: full.

We transfer the ownership to the foreign library.

Implementations on Foreign Types

Implementors