Function glib::subclass::shared::register_shared_type[][src]

pub fn register_shared_type<T: SharedType>() -> 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 Shared! for defining a function that ensures that this is only called once and returns the type id.