Derive Macro glib_macros::Boxed

source · []
#[derive(Boxed)]
{
    // Attributes available to this derive:
    #[boxed_nullable]
    #[boxed_type]
}
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::Boxed)]
#[boxed_type(name = "MyBoxed")]
struct MyBoxed(String);