[][src]Function glib::subclass::boxed::register_boxed_type

pub fn register_boxed_type<T: BoxedType>() -> Type

Register a boxed glib::Type ID for T.

This must be called only once and will panic on a second call.

See glib_boxed_type! for defining a function that ensures that this is only called once and returns the type id.