Derive Macro glib::GSharedBoxed [−][src]
#[derive(GSharedBoxed)] { // Attributes available to this derive: #[gshared_boxed] }
Expand description
Derive macro for defining a SharedType
::get_type
function and
the glib::Value
traits.
Example
use glib::prelude::*; use glib::subclass::prelude::*; #[derive(Clone, Debug, PartialEq, Eq)] struct MySharedInner { foo: String, } #[derive(Clone, Debug, PartialEq, Eq, glib::GSharedBoxed)] #[gshared_boxed(type_name = "MyShared")] struct MyShared(std::sync::Arc<MySharedInner>);