Derive Macro glib::GBoxed[][src]

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

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

Example

use glib::prelude::*;
use glib::subclass::prelude::*;

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