[]Derive Macro glib::GBoxed

#[derive(GBoxed)]
{
    // Attributes available to this derive:
    #[gboxed]
}

Derive macro for defining a BoxedType::get_type function and the glib::Value traits.

Example

#[macro_use] extern crate glib;
use glib::prelude::*;
use glib::subclass::prelude::*;

#[derive(Clone, Debug, PartialEq, Eq, GBoxed)]
#[gboxed(type_name = "MyBoxed")]
struct MyBoxed(String);