Function glib::subclass::boxed::register_boxed_type
source · pub fn register_boxed_type<T: BoxedType>() -> Type
Expand description
Register a boxed glib::Type
ID for T
.
This must be called only once and will panic on a second call.
See Boxed!
for defining a function that ensures that
this is only called once and returns the type id.