Trait glib::translate::IntoGlib

source ·
pub trait IntoGlib {
    type GlibType: Copy;

    // Required method
    fn into_glib(self) -> Self::GlibType;
}
Expand description

Translate a simple type.

Required Associated Types§

Required Methods§

source

fn into_glib(self) -> Self::GlibType

Implementations on Foreign Types§

source§

impl IntoGlib for char

source§

impl IntoGlib for bool

§

type GlibType = i32

source§

fn into_glib(self) -> gboolean

source§

impl<T: OptionIntoGlib> IntoGlib for Option<T>

§

type GlibType = <T as IntoGlib>::GlibType

source§

fn into_glib(self) -> Self::GlibType

source§

impl IntoGlib for Ordering

source§

impl IntoGlib for Option<char>

source§

impl<O, E, G> IntoGlib for Result<O, E>where G: Copy, O: IntoGlib<GlibType = G> + TryFromGlib<G, Error = E>, E: IntoGlib<GlibType = G>,

§

type GlibType = G

source§

fn into_glib(self) -> Self::GlibType

Implementors§