You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The following implementations follows the lifecycle of plugins and of dynamic types (see [`TypePluginExt::unuse`]).
90
-
// An object interface can be reregistered as a dynamic type (see [`TypePluginExt::register_type`]).
89
+
// The following implementations follows the lifecycle of plugins and of dynamic types (see [`TypePluginExt`] and [`TypeModuleExt`]).
90
+
// An object interface can be reregistered as a dynamic type.
91
91
let register_interface = if lazy_registration {
92
92
// registers the object interface as a dynamic type on the first use (lazy registration).
93
93
// a weak reference on the plugin is stored and will be used later on the first use of the object interface.
94
-
// this implementation relies on a static storage of a weak reference on the plugin and of the glib type to know if the object interface has been registered.
94
+
// this implementation relies on a static storage of a weak reference on the plugin and of the GLib type to know if the object interface has been registered.
95
95
quote!{
96
96
impl #self_ty {
97
-
/// Returns a mutable reference to the registration status: a tuple of the weak reference on the plugin and of the glib type.
97
+
/// Returns a mutable reference to the registration status: a tuple of the weak reference on the plugin and of the GLib type.
98
98
/// This is safe because the mutable reference guarantees that no other threads are concurrently accessing the data.
99
99
#[inline]
100
100
fn get_registration_status_ref_mut() -> &'staticmutOption<(<#plugin_ty as #crate_ident::clone::Downgrade>::Weak, #crate_ident::Type)> {
// The following implementations follows the lifecycle of plugins and of dynamic types (see [`TypePluginExt::unuse`]).
85
-
// An object subclass can be reregistered as a dynamic type (see [`TypePluginExt::register_type`]).
84
+
// The following implementations follows the lifecycle of plugins and of dynamic types (see [`TypePluginExt`] and [`TypeModuleExt`]).
85
+
// An object subclass can be reregistered as a dynamic type.
86
86
let register_type = if lazy_registration {
87
87
// registers the object subclass as a dynamic type on the first use (lazy registration).
88
88
// a weak reference on the plugin is stored and will be used later on the first use of the object subclass.
89
-
// this implementation relies on a static storage of a weak reference on the plugin and of the glib type to know if the object subclass has been registered.
89
+
// this implementation relies on a static storage of a weak reference on the plugin and of the GLib type to know if the object subclass has been registered.
90
90
quote!{
91
91
impl #self_ty {
92
-
/// Returns a mutable reference to the registration status: a tuple of the weak reference on the plugin and of the glib type.
92
+
/// Returns a mutable reference to the registration status: a tuple of the weak reference on the plugin and of the GLib type.
93
93
/// This is safe because the mutable reference guarantees that no other threads are concurrently accessing the data.
94
94
#[inline]
95
95
fn get_registration_status_ref_mut() -> &'staticmutOption<(<#plugin_ty as #crate_ident::clone::Downgrade>::Weak, #crate_ident::Type)> {
0 commit comments