| 1 | // Take a look at the license at the top of the repository in the LICENSE file. |
| 2 | |
| 3 | use glibrust-analyzer cargo glib 0.22.5 crate/::{preluderust-analyzer cargo glib 0.22.5 prelude/::*, subclassrust-analyzer cargo glib 0.22.5 subclass/::preluderust-analyzer cargo glib 0.22.5 subclass/prelude/::*}; |
| 4 | |
| 5 | mod static_rust-analyzer cargo glib-macros 0.22.6 static_/ { |
| 6 | use superrust-analyzer cargo glib-macros 0.22.6 crate/::*; |
| 7 | |
| 8 | pub mod imprust-analyzer cargo glib-macros 0.22.6 static_/imp/ { |
| 9 | use superrust-analyzer cargo glib-macros 0.22.6 static_/::*; |
| 10 | |
| 11 | // impl for an object interface to register as a static type. |
| 12 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:)] |
| 13 | #[repr(C)] |
| 14 | pub struct MyStaticInterfaceClassrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceClass# { |
| 15 | parentrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceClass#parent.: glibrust-analyzer cargo glib 0.22.5 crate/::gobject_ffirust-analyzer cargo gobject-sys 0.22.0 crate/::GTypeInterfacerust-analyzer cargo gobject-sys 0.22.0 GTypeInterface#, |
| 16 | } |
| 17 | |
| 18 | unsafe impl InterfaceStructrust-analyzer cargo glib 0.22.5 subclass/types/InterfaceStruct# for MyStaticInterfaceClassrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceClass# { |
| 19 | type Typerust-analyzer cargo glib-macros 0.22.6 static_/imp/impl#[MyStaticInterfaceClass][InterfaceStruct]Type# = MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterface#; |
| 20 | } |
| 21 | |
| 22 | pub enum MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterface# {} |
| 23 | |
| 24 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_interfacerust-analyzer cargo glib-macros 0.22.2 object_interface:] |
| 25 | impl ObjectInterfacerust-analyzer cargo glib 0.22.5 subclass/interface/ObjectInterface# for MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterface# { |
| 26 | const NAMErust-analyzer cargo glib-macros 0.22.6 static_/imp/impl#[MyStaticInterface][ObjectInterface]NAME.: &'static str = "MyStaticInterface"; |
| 27 | |
| 28 | type Interfacerust-analyzer cargo glib-macros 0.22.6 static_/imp/impl#[MyStaticInterface][ObjectInterface]Interface# = MyStaticInterfaceClassrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceClass#; |
| 29 | } |
| 30 | |
| 31 | pub trait MyStaticInterfaceImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceImpl#: |
| 32 | ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# + ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#<Typerust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#Type#: IsArust-analyzer cargo glib 0.22.5 object/IsA#<superrust-analyzer cargo glib-macros 0.22.6 static_/::MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#>> |
| 33 | { |
| 34 | } |
| 35 | |
| 36 | // impl for an object subclass to register as a static type and that implements `MyStaticInterface`. |
| 37 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 38 | pub struct MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticType#; |
| 39 | |
| 40 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_subclassrust-analyzer cargo glib-macros 0.22.2 object_subclass:] |
| 41 | impl ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass# for MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticType# { |
| 42 | const NAMErust-analyzer cargo glib-macros 0.22.6 static_/imp/impl#[MyStaticType][ObjectSubclass]NAME.: &'static str = "MyStaticType"; |
| 43 | type Typerust-analyzer cargo glib-macros 0.22.6 static_/imp/impl#[MyStaticType][ObjectSubclass]Type# = superrust-analyzer cargo glib-macros 0.22.6 static_/::MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#; |
| 44 | type Interfacesrust-analyzer cargo glib-macros 0.22.6 static_/imp/impl#[MyStaticType][ObjectSubclass]Interfaces# = (superrust-analyzer cargo glib-macros 0.22.6 static_/::MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#,); |
| 45 | } |
| 46 | |
| 47 | impl ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# for MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticType# {} |
| 48 | |
| 49 | impl MyStaticInterfaceImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceImpl# for MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticType# {} |
| 50 | |
| 51 | pub trait MyStaticTypeImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticTypeImpl#: |
| 52 | ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# + ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#<Typerust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#Type#: IsArust-analyzer cargo glib 0.22.5 object/IsA#<superrust-analyzer cargo glib-macros 0.22.6 static_/::MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#>> |
| 53 | { |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // an object interface to register as a static type. |
| 58 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 59 | pub struct MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#(ObjectInterface<imprust-analyzer cargo glib-macros 0.22.6 static_/imp/::MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterface#>); |
| 60 | } |
| 61 | |
| 62 | unsafe impl<T: imprust-analyzer cargo glib-macros 0.22.6 static_/imp/::MyStaticInterfaceImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceImpl#> IsImplementablerust-analyzer cargo glib 0.22.5 subclass/types/IsImplementable#<T> for MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface# {} |
| 63 | |
| 64 | // an object subclass to register as a static type and that implements `MyStaticInterface`. |
| 65 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 66 | pub struct MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#(ObjectSubclass<imprust-analyzer cargo glib-macros 0.22.6 static_/imp/::MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticType#>) @implements MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#; |
| 67 | } |
| 68 | |
| 69 | unsafe impl<T: imprust-analyzer cargo glib-macros 0.22.6 static_/imp/::MyStaticTypeImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticTypeImpl#> IsSubclassablerust-analyzer cargo glib 0.22.5 subclass/types/IsSubclassable#<T> for MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType# {} |
| 70 | } |
| 71 | |
| 72 | use static_rust-analyzer cargo glib-macros 0.22.6 static_/::{ |
| 73 | imprust-analyzer cargo glib-macros 0.22.6 static_/imp/::{MyStaticInterfaceImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceImpl#, MyStaticTypeImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticTypeImpl#}, |
| 74 | *, |
| 75 | }; |
| 76 | |
| 77 | mod modulerust-analyzer cargo glib-macros 0.22.6 module/ { |
| 78 | use superrust-analyzer cargo glib-macros 0.22.6 crate/::*; |
| 79 | |
| 80 | mod imprust-analyzer cargo glib-macros 0.22.6 module/imp/ { |
| 81 | use superrust-analyzer cargo glib-macros 0.22.6 module/::*; |
| 82 | |
| 83 | // impl for a object interface to register as a dynamic type and that extends `MyStaticInterface`. |
| 84 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:)] |
| 85 | #[repr(C)] |
| 86 | pub struct MyModuleInterfaceClassrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceClass# { |
| 87 | parentrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceClass#parent.: glibrust-analyzer cargo glib 0.22.5 crate/::gobject_ffirust-analyzer cargo gobject-sys 0.22.0 crate/::GTypeInterfacerust-analyzer cargo gobject-sys 0.22.0 GTypeInterface#, |
| 88 | } |
| 89 | |
| 90 | unsafe impl InterfaceStructrust-analyzer cargo glib 0.22.5 subclass/types/InterfaceStruct# for MyModuleInterfaceClassrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceClass# { |
| 91 | type Typerust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceClass][InterfaceStruct]Type# = MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface#; |
| 92 | } |
| 93 | |
| 94 | pub enum MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface# {} |
| 95 | |
| 96 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_interfacerust-analyzer cargo glib-macros 0.22.2 object_interface:] |
| 97 | #[object_interface_dynamic] |
| 98 | impl ObjectInterfacerust-analyzer cargo glib 0.22.5 subclass/interface/ObjectInterface# for MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface# { |
| 99 | const NAMErust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface][ObjectInterface]NAME.: &'static str = "MyModuleInterface"; |
| 100 | type Prerequisitesrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface][ObjectInterface]Prerequisites# = (MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#,); |
| 101 | type Interfacerust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface][ObjectInterface]Interface# = MyModuleInterfaceClassrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceClass#; |
| 102 | } |
| 103 | |
| 104 | pub trait MyModuleInterfaceImplrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceImpl#: |
| 105 | ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# + ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#<Typerust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#Type#: IsArust-analyzer cargo glib 0.22.5 object/IsA#<superrust-analyzer cargo glib-macros 0.22.6 module/::MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterface#>> |
| 106 | { |
| 107 | } |
| 108 | |
| 109 | // impl for an object subclass to register as a dynamic type and that extends `MyStaticType` and that implements `MyStaticInterface` and `MyModuleInterface`. |
| 110 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 111 | pub struct MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType#; |
| 112 | |
| 113 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_subclassrust-analyzer cargo glib-macros 0.22.2 object_subclass:] |
| 114 | #[object_subclass_dynamic] |
| 115 | impl ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass# for MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType# { |
| 116 | const NAMErust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType][ObjectSubclass]NAME.: &'static str = "MyModuleType"; |
| 117 | type Typerust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType][ObjectSubclass]Type# = superrust-analyzer cargo glib-macros 0.22.6 module/::MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/MyModuleType#; |
| 118 | type ParentTyperust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType][ObjectSubclass]ParentType# = MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#; |
| 119 | type Interfacesrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType][ObjectSubclass]Interfaces# = (MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#, superrust-analyzer cargo glib-macros 0.22.6 module/::MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterface#); |
| 120 | } |
| 121 | |
| 122 | impl ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# for MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType# {} |
| 123 | |
| 124 | impl MyStaticTypeImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticTypeImpl# for MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType# {} |
| 125 | |
| 126 | impl MyStaticInterfaceImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceImpl# for MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType# {} |
| 127 | |
| 128 | impl MyModuleInterfaceImplrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceImpl# for MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType# {} |
| 129 | |
| 130 | // impl for an object interface to lazy register as a dynamic type and that extends `MyStaticInterface`. |
| 131 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:)] |
| 132 | #[repr(C)] |
| 133 | pub struct MyModuleInterfaceLazyClassrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazyClass# { |
| 134 | parentrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazyClass#parent.: glibrust-analyzer cargo glib 0.22.5 crate/::gobject_ffirust-analyzer cargo gobject-sys 0.22.0 crate/::GTypeInterfacerust-analyzer cargo gobject-sys 0.22.0 GTypeInterface#, |
| 135 | } |
| 136 | |
| 137 | unsafe impl InterfaceStructrust-analyzer cargo glib 0.22.5 subclass/types/InterfaceStruct# for MyModuleInterfaceLazyClassrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazyClass# { |
| 138 | type Typerust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazyClass][InterfaceStruct]Type# = MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy#; |
| 139 | } |
| 140 | |
| 141 | pub enum MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy# {} |
| 142 | |
| 143 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_interfacerust-analyzer cargo glib-macros 0.22.2 object_interface:] |
| 144 | #[object_interface_dynamic(lazy_registration = true)] |
| 145 | impl ObjectInterfacerust-analyzer cargo glib 0.22.5 subclass/interface/ObjectInterface# for MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy# { |
| 146 | const NAMErust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy][ObjectInterface]NAME.: &'static str = "MyModuleInterfaceLazy"; |
| 147 | type Prerequisitesrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy][ObjectInterface]Prerequisites# = (MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#,); |
| 148 | type Interfacerust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy][ObjectInterface]Interface# = MyModuleInterfaceLazyClassrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazyClass#; |
| 149 | } |
| 150 | |
| 151 | pub trait MyModuleInterfaceLazyImplrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazyImpl#: |
| 152 | ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# + ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#<Typerust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#Type#: IsArust-analyzer cargo glib 0.22.5 object/IsA#<superrust-analyzer cargo glib-macros 0.22.6 module/::MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterfaceLazy#>> |
| 153 | { |
| 154 | } |
| 155 | |
| 156 | // impl for an object subclass to lazy register as a dynamic type and that extends `MyStaticType` and that implements `MyStaticInterface` and `MyModuleInterfaceLazy`. |
| 157 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 158 | pub struct MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy#; |
| 159 | |
| 160 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_subclassrust-analyzer cargo glib-macros 0.22.2 object_subclass:] |
| 161 | #[object_subclass_dynamic(lazy_registration = true)] |
| 162 | impl ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass# for MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy# { |
| 163 | const NAMErust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy][ObjectSubclass]NAME.: &'static str = "MyModuleTypeLazy"; |
| 164 | type Typerust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy][ObjectSubclass]Type# = superrust-analyzer cargo glib-macros 0.22.6 module/::MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/MyModuleTypeLazy#; |
| 165 | type ParentTyperust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy][ObjectSubclass]ParentType# = MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#; |
| 166 | type Interfacesrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy][ObjectSubclass]Interfaces# = (MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#, superrust-analyzer cargo glib-macros 0.22.6 module/::MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterfaceLazy#); |
| 167 | } |
| 168 | |
| 169 | impl ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# for MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy# {} |
| 170 | |
| 171 | impl MyStaticTypeImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticTypeImpl# for MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy# {} |
| 172 | |
| 173 | impl MyStaticInterfaceImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceImpl# for MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy# {} |
| 174 | |
| 175 | impl MyModuleInterfaceLazyImplrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazyImpl# for MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy# {} |
| 176 | |
| 177 | // impl for a type module (must extend `glib::TypeModule` and must implement `glib::TypePlugin`). |
| 178 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 179 | pub struct MyModulerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModule#; |
| 180 | |
| 181 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_subclassrust-analyzer cargo glib-macros 0.22.2 object_subclass:] |
| 182 | impl ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass# for MyModulerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModule# { |
| 183 | const NAMErust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModule][ObjectSubclass]NAME.: &'static str = "MyModule"; |
| 184 | type Typerust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModule][ObjectSubclass]Type# = superrust-analyzer cargo glib-macros 0.22.6 module/::MyModulerust-analyzer cargo glib-macros 0.22.6 module/MyModule#; |
| 185 | type ParentTyperust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModule][ObjectSubclass]ParentType# = glibrust-analyzer cargo glib 0.22.5 crate/::TypeModulerust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModule#; |
| 186 | type Interfacesrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModule][ObjectSubclass]Interfaces# = (glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#,); |
| 187 | } |
| 188 | |
| 189 | impl ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# for MyModulerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModule# {} |
| 190 | |
| 191 | impl TypePluginImplrust-analyzer cargo glib 0.22.5 subclass/type_plugin/TypePluginImpl# for MyModulerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModule# {} |
| 192 | |
| 193 | impl TypeModuleImplrust-analyzer cargo glib 0.22.5 subclass/type_module/TypeModuleImpl# for MyModulerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModule# { |
| 194 | fn loadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModule][TypeModuleImpl]load().(&self) -> bool { |
| 195 | // registers object subclasses and interfaces as dynamic types. |
| 196 | let my_module = self.objrust-analyzer cargo glib 0.22.5 subclass/types/impl#[T][ObjectSubclassExt]obj().(); |
| 197 | let type_module: &glibrust-analyzer cargo glib 0.22.5 crate/::TypeModulerust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModule# = my_module.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().(); |
| 198 | MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface#::on_implementation_loadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface]on_implementation_load().(type_module) |
| 199 | && MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType#::on_implementation_loadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType]on_implementation_load().(type_module) |
| 200 | && MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy#::on_implementation_loadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy]on_implementation_load().(type_module) |
| 201 | && MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy#::on_implementation_loadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy]on_implementation_load().(type_module) |
| 202 | } |
| 203 | |
| 204 | fn unloadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModule][TypeModuleImpl]unload().(&self) { |
| 205 | // marks object subclasses and interfaces as unregistered. |
| 206 | let my_module = self.objrust-analyzer cargo glib 0.22.5 subclass/types/impl#[T][ObjectSubclassExt]obj().(); |
| 207 | let type_module: &glibrust-analyzer cargo glib 0.22.5 crate/::TypeModulerust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModule# = my_module.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().(); |
| 208 | MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy#::on_implementation_unloadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy]on_implementation_unload().(type_module); |
| 209 | MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy#::on_implementation_unloadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy]on_implementation_unload().(type_module); |
| 210 | MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType#::on_implementation_unloadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType]on_implementation_unload().(type_module); |
| 211 | MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface#::on_implementation_unloadrust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface]on_implementation_unload().(type_module); |
| 212 | } |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | // an object interface to register as a dynamic type and that extends `MyStaticInterface`. |
| 217 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 218 | pub struct MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterface#(ObjectInterface<imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface#>) @requires MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#; |
| 219 | } |
| 220 | |
| 221 | unsafe impl<T: imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfaceImplrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceImpl#> IsImplementablerust-analyzer cargo glib 0.22.5 subclass/types/IsImplementable#<T> for MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterface# {} |
| 222 | |
| 223 | // an object subclass to register as a dynamic type and that extends `MyStaticType` and that implements `MyStaticInterface` and `MyModuleInterface`. |
| 224 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 225 | pub struct MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/MyModuleType#(ObjectSubclass<imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType#>) @extends MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#, @implements MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#, MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterface#; |
| 226 | } |
| 227 | |
| 228 | // an object interface to lazy register as a dynamic type and that extends `MyStaticInterface`. |
| 229 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 230 | pub struct MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterfaceLazy#(ObjectInterface<imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy#>) @requires MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#; |
| 231 | } |
| 232 | |
| 233 | unsafe impl<T: imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfaceLazyImplrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazyImpl#> IsImplementablerust-analyzer cargo glib 0.22.5 subclass/types/IsImplementable#<T> for MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterfaceLazy# {} |
| 234 | |
| 235 | // an object subclass to lazy register as a dynamic type and that extends `MyStaticType` that implements `MyStaticInterface` and `MyModuleInterfaceLazy`. |
| 236 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 237 | pub struct MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/MyModuleTypeLazy#(ObjectSubclass<imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy#>) @extends MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#, @implements MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#, MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/MyModuleInterfaceLazy#; |
| 238 | } |
| 239 | |
| 240 | // a module (must extend `glib::TypeModule` and must implement `glib::TypePlugin`). |
| 241 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 242 | pub struct MyModulerust-analyzer cargo glib-macros 0.22.6 module/MyModule#(ObjectSubclass<imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModulerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModule#>) |
| 243 | @extends glibrust-analyzer cargo glib 0.22.5 crate/::TypeModulerust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModule#, @implements glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#; |
| 244 | } |
| 245 | |
| 246 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 247 | fn dynamic_object_subclassesrust-analyzer cargo glib-macros 0.22.6 module/dynamic_object_subclasses().() { |
| 248 | use glibrust-analyzer cargo glib 0.22.5 crate/::preluderust-analyzer cargo glib 0.22.5 prelude/::TypeModuleExtrust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#; |
| 249 | |
| 250 | // checks types of object subclasses and of object interfaces to register as dynamic types are invalid (module is not loaded yet). |
| 251 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 252 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 253 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 254 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 255 | |
| 256 | // simulates the GLib type system to load/unload the module. |
| 257 | let module = glibrust-analyzer cargo glib 0.22.5 crate/::Objectrust-analyzer cargo glib 0.22.5 object/Object#::newrust-analyzer cargo glib 0.22.5 object/impl#[Object]new().::<MyModulerust-analyzer cargo glib-macros 0.22.6 module/MyModule#>(); |
| 258 | TypeModuleExtrust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#::use_rust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#use_().(&module); |
| 259 | TypeModuleExtrust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#::unuserust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#unuse().(&module); |
| 260 | |
| 261 | // checks types of object subclasses and of object interfaces registered as dynamic types are valid (module is unloaded). |
| 262 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 263 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 264 | // checks types of object subclasses and of object interfaces that are lazy registered as dynamic types are still invalid (module is unloaded). |
| 265 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 266 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 267 | |
| 268 | // simulates the GLib type system to load the module. |
| 269 | TypeModuleExtrust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#::use_rust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#use_().(&module); |
| 270 | |
| 271 | // checks types of object subclasses and of object interfaces registered as dynamic types are valid (module is loaded). |
| 272 | let iface_type = imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface][ObjectInterfaceType]type_().(); |
| 273 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(iface_type.is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 274 | let obj_type = imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType][ObjectSubclassType]type_().(); |
| 275 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(obj_type.is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 276 | let iface_lazy_type = imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy][ObjectInterfaceType]type_().(); |
| 277 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(iface_lazy_type.is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 278 | let obj_lazy_type = imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy][ObjectSubclassType]type_().(); |
| 279 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(obj_lazy_type.is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 280 | |
| 281 | // checks plugin of object subclasses and of object interfaces is `MyModule`. |
| 282 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 283 | iface_type.pluginrust-analyzer cargo glib 0.22.5 types/impl#[Type]plugin().().as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().(), |
| 284 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(module.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>()) |
| 285 | ); |
| 286 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 287 | obj_type.pluginrust-analyzer cargo glib 0.22.5 types/impl#[Type]plugin().().as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().(), |
| 288 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(module.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>()) |
| 289 | ); |
| 290 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 291 | iface_lazy_type.pluginrust-analyzer cargo glib 0.22.5 types/impl#[Type]plugin().().as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().(), |
| 292 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(module.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>()) |
| 293 | ); |
| 294 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 295 | obj_lazy_type.pluginrust-analyzer cargo glib 0.22.5 types/impl#[Type]plugin().().as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().(), |
| 296 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(module.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>()) |
| 297 | ); |
| 298 | |
| 299 | // simulates the GLib type system to unload the module. |
| 300 | TypeModuleExtrust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#::unuserust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#unuse().(&module); |
| 301 | |
| 302 | // checks types of object subclasses and of object interfaces registered as dynamic types are still valid (should have been marked as unloaded by the GLib type system but this cannot be checked). |
| 303 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 304 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 305 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 306 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 307 | |
| 308 | // simulates the GLib type system to reload the module. |
| 309 | TypeModuleExtrust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#::use_rust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#use_().(&module); |
| 310 | |
| 311 | // checks types of object subclasses and of object interfaces registered as dynamic types are still valid (should have been marked as unloaded by the GLib type system but this cannot be checked). |
| 312 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfacerust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterface#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterface][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 313 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTyperust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleType#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleType][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 314 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleInterfaceLazy][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 315 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 module/imp/::MyModuleTypeLazyrust-analyzer cargo glib-macros 0.22.6 module/imp/MyModuleTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 module/imp/impl#[MyModuleTypeLazy][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 316 | |
| 317 | // simulates the GLib type system to unload the module. |
| 318 | TypeModuleExtrust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#::unuserust-analyzer cargo glib 0.22.5 gobject/type_module/TypeModuleExt#unuse().(&module); |
| 319 | } |
| 320 | } |
| 321 | |
| 322 | pub mod pluginrust-analyzer cargo glib-macros 0.22.6 plugin/ { |
| 323 | use superrust-analyzer cargo glib-macros 0.22.6 crate/::*; |
| 324 | |
| 325 | pub mod imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/ { |
| 326 | use superrust-analyzer cargo glib-macros 0.22.6 plugin/::*; |
| 327 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/::Cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/Cell#; |
| 328 | |
| 329 | // impl for a object interface to register as a dynamic type and that extends `MyStaticInterface`. |
| 330 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:)] |
| 331 | #[repr(C)] |
| 332 | pub struct MyPluginInterfaceClassrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceClass# { |
| 333 | parentrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceClass#parent.: glibrust-analyzer cargo glib 0.22.5 crate/::gobject_ffirust-analyzer cargo gobject-sys 0.22.0 crate/::GTypeInterfacerust-analyzer cargo gobject-sys 0.22.0 GTypeInterface#, |
| 334 | } |
| 335 | |
| 336 | unsafe impl InterfaceStructrust-analyzer cargo glib 0.22.5 subclass/types/InterfaceStruct# for MyPluginInterfaceClassrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceClass# { |
| 337 | type Typerust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceClass][InterfaceStruct]Type# = MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#; |
| 338 | } |
| 339 | |
| 340 | pub enum MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface# {} |
| 341 | |
| 342 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_interfacerust-analyzer cargo glib-macros 0.22.2 object_interface:] |
| 343 | #[object_interface_dynamic(plugin_type = superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/MyPlugin#)] |
| 344 | impl ObjectInterfacerust-analyzer cargo glib 0.22.5 subclass/interface/ObjectInterface# for MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface# { |
| 345 | const NAMErust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterface]NAME.: &'static str = "MyPluginInterface"; |
| 346 | type Prerequisitesrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterface]Prerequisites# = (MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#,); |
| 347 | type Interfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterface]Interface# = MyPluginInterfaceClassrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceClass#; |
| 348 | } |
| 349 | |
| 350 | pub trait MyPluginInterfaceImplrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceImpl#: |
| 351 | ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# + ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#<Typerust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#Type#: IsArust-analyzer cargo glib 0.22.5 object/IsA#<superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterface#>> |
| 352 | { |
| 353 | } |
| 354 | |
| 355 | // impl for an object subclass to register as a dynamic type and that extends `MyStaticType` and that implements `MyStaticInterface` and `MyPluginInterface`. |
| 356 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 357 | pub struct MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#; |
| 358 | |
| 359 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_subclassrust-analyzer cargo glib-macros 0.22.2 object_subclass:] |
| 360 | #[object_subclass_dynamic(plugin_type = superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/MyPlugin#)] |
| 361 | impl ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass# for MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType# { |
| 362 | const NAMErust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclass]NAME.: &'static str = "MyPluginType"; |
| 363 | type Typerust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclass]Type# = superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginType#; |
| 364 | type ParentTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclass]ParentType# = MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#; |
| 365 | type Interfacesrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclass]Interfaces# = (MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#, superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterface#); |
| 366 | } |
| 367 | |
| 368 | impl ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# for MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType# {} |
| 369 | |
| 370 | impl MyStaticTypeImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticTypeImpl# for MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType# {} |
| 371 | |
| 372 | impl MyStaticInterfaceImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceImpl# for MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType# {} |
| 373 | |
| 374 | impl MyPluginInterfaceImplrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceImpl# for MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType# {} |
| 375 | |
| 376 | // impl for an object interface to lazy register as a dynamic type and that extends `MyStaticInterface`. |
| 377 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:)] |
| 378 | #[repr(C)] |
| 379 | pub struct MyPluginInterfaceLazyClassrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazyClass# { |
| 380 | parentrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazyClass#parent.: glibrust-analyzer cargo glib 0.22.5 crate/::gobject_ffirust-analyzer cargo gobject-sys 0.22.0 crate/::GTypeInterfacerust-analyzer cargo gobject-sys 0.22.0 GTypeInterface#, |
| 381 | } |
| 382 | |
| 383 | unsafe impl InterfaceStructrust-analyzer cargo glib 0.22.5 subclass/types/InterfaceStruct# for MyPluginInterfaceLazyClassrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazyClass# { |
| 384 | type Typerust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazyClass][InterfaceStruct]Type# = MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#; |
| 385 | } |
| 386 | |
| 387 | pub enum MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy# {} |
| 388 | |
| 389 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_interfacerust-analyzer cargo glib-macros 0.22.2 object_interface:] |
| 390 | #[object_interface_dynamic(plugin_type = superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/MyPlugin#, lazy_registration = true)] |
| 391 | impl ObjectInterfacerust-analyzer cargo glib 0.22.5 subclass/interface/ObjectInterface# for MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy# { |
| 392 | const NAMErust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterface]NAME.: &'static str = "MyPluginInterfaceLazy"; |
| 393 | type Prerequisitesrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterface]Prerequisites# = (MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#,); |
| 394 | type Interfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterface]Interface# = MyPluginInterfaceLazyClassrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazyClass#; |
| 395 | } |
| 396 | |
| 397 | pub trait MyPluginInterfaceLazyImplrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazyImpl#: |
| 398 | ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# + ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#<Typerust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass#Type#: IsArust-analyzer cargo glib 0.22.5 object/IsA#<superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterfaceLazy#>> |
| 399 | { |
| 400 | } |
| 401 | |
| 402 | // impl for an object subclass to lazy register as a dynamic type and that extends `MyStaticType` and that implements `MyStaticInterface` and `MyPluginInterfaceLazy`. |
| 403 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 404 | pub struct MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#; |
| 405 | |
| 406 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_subclassrust-analyzer cargo glib-macros 0.22.2 object_subclass:] |
| 407 | #[object_subclass_dynamic(plugin_type = superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/MyPlugin#, lazy_registration = true)] |
| 408 | impl ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass# for MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy# { |
| 409 | const NAMErust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclass]NAME.: &'static str = "MyPluginTypeLazy"; |
| 410 | type Typerust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclass]Type# = superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginTypeLazy#; |
| 411 | type ParentTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclass]ParentType# = MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#; |
| 412 | type Interfacesrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclass]Interfaces# = (MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#, superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterfaceLazy#); |
| 413 | } |
| 414 | |
| 415 | impl ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# for MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy# {} |
| 416 | |
| 417 | impl MyStaticTypeImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticTypeImpl# for MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy# {} |
| 418 | |
| 419 | impl MyStaticInterfaceImplrust-analyzer cargo glib-macros 0.22.6 static_/imp/MyStaticInterfaceImpl# for MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy# {} |
| 420 | |
| 421 | impl MyPluginInterfaceLazyImplrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazyImpl# for MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy# {} |
| 422 | |
| 423 | // impl for a type plugin (must implement `glib::TypePlugin`). |
| 424 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 425 | pub struct MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin# { |
| 426 | my_interface_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_type_info.: Cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/Cell#<Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<glibrust-analyzer cargo glib 0.22.5 crate/::TypeInforust-analyzer cargo glib 0.22.5 gobject/type_info/TypeInfo#>>, |
| 427 | my_interface_iface_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_iface_info.: Cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/Cell#<Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<glibrust-analyzer cargo glib 0.22.5 crate/::InterfaceInforust-analyzer cargo glib 0.22.5 gobject/interface_info/InterfaceInfo#>>, |
| 428 | my_type_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_type_type_info.: Cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/Cell#<Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<glibrust-analyzer cargo glib 0.22.5 crate/::TypeInforust-analyzer cargo glib 0.22.5 gobject/type_info/TypeInfo#>>, |
| 429 | my_interface_lazy_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_lazy_type_info.: Cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/Cell#<Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<glibrust-analyzer cargo glib 0.22.5 crate/::TypeInforust-analyzer cargo glib 0.22.5 gobject/type_info/TypeInfo#>>, |
| 430 | my_interface_lazy_iface_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_lazy_iface_info.: Cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/Cell#<Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<glibrust-analyzer cargo glib 0.22.5 crate/::InterfaceInforust-analyzer cargo glib 0.22.5 gobject/interface_info/InterfaceInfo#>>, |
| 431 | my_type_lazy_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_type_lazy_type_info.: Cellrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/Cell#<Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<glibrust-analyzer cargo glib 0.22.5 crate/::TypeInforust-analyzer cargo glib 0.22.5 gobject/type_info/TypeInfo#>>, |
| 432 | } |
| 433 | |
| 434 | #[glibrust-analyzer cargo glib 0.22.5 crate/::object_subclassrust-analyzer cargo glib-macros 0.22.2 object_subclass:] |
| 435 | impl ObjectSubclassrust-analyzer cargo glib 0.22.5 subclass/types/ObjectSubclass# for MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin# { |
| 436 | const NAMErust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPlugin][ObjectSubclass]NAME.: &'static str = "MyPlugin"; |
| 437 | type Typerust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPlugin][ObjectSubclass]Type# = superrust-analyzer cargo glib-macros 0.22.6 plugin/::MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/MyPlugin#; |
| 438 | type Interfacesrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPlugin][ObjectSubclass]Interfaces# = (glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#,); |
| 439 | } |
| 440 | |
| 441 | impl ObjectImplrust-analyzer cargo glib 0.22.5 subclass/object/ObjectImpl# for MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin# {} |
| 442 | |
| 443 | impl TypePluginImplrust-analyzer cargo glib 0.22.5 subclass/type_plugin/TypePluginImpl# for MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin# { |
| 444 | fn use_pluginrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPlugin][TypePluginImpl]use_plugin().(&self) { |
| 445 | // registers object subclasses and interfaces as dynamic types. |
| 446 | let my_plugin = self.objrust-analyzer cargo glib 0.22.5 subclass/types/impl#[T][ObjectSubclassExt]obj().(); |
| 447 | MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::on_implementation_loadrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface]on_implementation_load().(my_plugin.as_refrust-analyzer cargo glib 0.22.5 object/impl#[`BorrowedObject<'_, T>`][`AsRef<T>`]as_ref().()); |
| 448 | MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#::on_implementation_loadrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType]on_implementation_load().(my_plugin.as_refrust-analyzer cargo glib 0.22.5 object/impl#[`BorrowedObject<'_, T>`][`AsRef<T>`]as_ref().()); |
| 449 | MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::on_implementation_loadrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy]on_implementation_load().(my_plugin.as_refrust-analyzer cargo glib 0.22.5 object/impl#[`BorrowedObject<'_, T>`][`AsRef<T>`]as_ref().()); |
| 450 | MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#::on_implementation_loadrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy]on_implementation_load().(my_plugin.as_refrust-analyzer cargo glib 0.22.5 object/impl#[`BorrowedObject<'_, T>`][`AsRef<T>`]as_ref().()); |
| 451 | } |
| 452 | |
| 453 | fn unuse_pluginrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPlugin][TypePluginImpl]unuse_plugin().(&self) { |
| 454 | // marks object subclasses and interfaces as unregistered. |
| 455 | let my_plugin = self.objrust-analyzer cargo glib 0.22.5 subclass/types/impl#[T][ObjectSubclassExt]obj().(); |
| 456 | MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#::on_implementation_unloadrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy]on_implementation_unload().(my_plugin.as_refrust-analyzer cargo glib 0.22.5 object/impl#[`BorrowedObject<'_, T>`][`AsRef<T>`]as_ref().()); |
| 457 | MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::on_implementation_unloadrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy]on_implementation_unload().(my_plugin.as_refrust-analyzer cargo glib 0.22.5 object/impl#[`BorrowedObject<'_, T>`][`AsRef<T>`]as_ref().()); |
| 458 | MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#::on_implementation_unloadrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType]on_implementation_unload().(my_plugin.as_refrust-analyzer cargo glib 0.22.5 object/impl#[`BorrowedObject<'_, T>`][`AsRef<T>`]as_ref().()); |
| 459 | MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::on_implementation_unloadrust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface]on_implementation_unload().(my_plugin.as_refrust-analyzer cargo glib 0.22.5 object/impl#[`BorrowedObject<'_, T>`][`AsRef<T>`]as_ref().()); |
| 460 | } |
| 461 | |
| 462 | fn complete_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPlugin][TypePluginImpl]complete_type_info().( |
| 463 | &self, |
| 464 | type_: glibrust-analyzer cargo glib 0.22.5 crate/::Typerust-analyzer cargo glib 0.22.5 types/Type#, |
| 465 | ) -> (glibrust-analyzer cargo glib 0.22.5 crate/::TypeInforust-analyzer cargo glib 0.22.5 gobject/type_info/TypeInfo#, glibrust-analyzer cargo glib 0.22.5 crate/::TypeValueTablerust-analyzer cargo glib 0.22.5 gobject/type_value_table/TypeValueTable#) { |
| 466 | let info = match type_ { |
| 467 | type_ if type_ rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().==rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq(). rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclassType]type_().() => self.my_type_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_type_type_info..getrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]get().(), |
| 468 | type_ if type_ rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().==rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq(). rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterfaceType]type_().() => { |
| 469 | self.my_interface_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_type_info..getrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]get().() |
| 470 | } |
| 471 | type_ if type_ rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().==rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq(). rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclassType]type_().() => { |
| 472 | self.my_type_lazy_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_type_lazy_type_info..getrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]get().() |
| 473 | } |
| 474 | type_ if type_ rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().==rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq(). rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterfaceType]type_().() => { |
| 475 | self.my_interface_lazy_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_lazy_type_info..getrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]get().() |
| 476 | } |
| 477 | _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("unexpected"), |
| 478 | }; |
| 479 | match info { |
| 480 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(info) => (info, glibrust-analyzer cargo glib 0.22.5 crate/::TypeValueTablerust-analyzer cargo glib 0.22.5 gobject/type_value_table/TypeValueTable#::defaultrust-analyzer cargo glib 0.22.5 gobject/type_value_table/impl#[TypeValueTable][Default]default().()), |
| 481 | _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("unexpected"), |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | fn complete_interface_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPlugin][TypePluginImpl]complete_interface_info().( |
| 486 | &self, |
| 487 | _instance_type: glibrust-analyzer cargo glib 0.22.5 crate/::Typerust-analyzer cargo glib 0.22.5 types/Type#, |
| 488 | interface_type: glibrust-analyzer cargo glib 0.22.5 crate/::Typerust-analyzer cargo glib 0.22.5 types/Type#, |
| 489 | ) -> glibrust-analyzer cargo glib 0.22.5 crate/::InterfaceInforust-analyzer cargo glib 0.22.5 gobject/interface_info/InterfaceInfo# { |
| 490 | let info = match interface_type { |
| 491 | type_ if type_ rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().==rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq(). rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterfaceType]type_().() => { |
| 492 | self.my_interface_iface_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_iface_info..getrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]get().() |
| 493 | } |
| 494 | type_ if type_ rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().==rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq(). rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterfaceType]type_().() => { |
| 495 | self.my_interface_lazy_iface_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_lazy_iface_info..getrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]get().() |
| 496 | } |
| 497 | _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("unexpected"), |
| 498 | }; |
| 499 | match info { |
| 500 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(info) => info, |
| 501 | _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("unexpected"), |
| 502 | } |
| 503 | } |
| 504 | } |
| 505 | |
| 506 | impl TypePluginRegisterImplrust-analyzer cargo glib 0.22.5 subclass/type_plugin/TypePluginRegisterImpl# for MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin# { |
| 507 | fn add_dynamic_interfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPlugin][TypePluginRegisterImpl]add_dynamic_interface().( |
| 508 | &self, |
| 509 | instance_type: glibrust-analyzer cargo glib 0.22.5 crate/::Typerust-analyzer cargo glib 0.22.5 types/Type#, |
| 510 | interface_type: glibrust-analyzer cargo glib 0.22.5 crate/::Typerust-analyzer cargo glib 0.22.5 types/Type#, |
| 511 | interface_info: &glibrust-analyzer cargo glib 0.22.5 crate/::InterfaceInforust-analyzer cargo glib 0.22.5 gobject/interface_info/InterfaceInfo#, |
| 512 | ) { |
| 513 | if !rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().instance_type.is_arust-analyzer cargo glib 0.22.5 types/impl#[Type]is_a().(interface_type) { |
| 514 | instance_type.add_interface_dynamicrust-analyzer cargo glib 0.22.5 types/impl#[Type]add_interface_dynamic().( |
| 515 | interface_type, |
| 516 | self.objrust-analyzer cargo glib 0.22.5 subclass/types/impl#[T][ObjectSubclassExt]obj().().upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>(), |
| 517 | ); |
| 518 | } |
| 519 | match interface_type { |
| 520 | type_ if type_ rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().==rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq(). rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterfaceType]type_().() => { |
| 521 | self.my_interface_iface_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_iface_info..setrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]set().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().interface_info)) |
| 522 | } |
| 523 | type_ if type_ rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().==rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq(). rust-analyzer cargo glib 0.22.5 types/impl#[Type][`PartialEq<Self>`]eq().imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterfaceType]type_().() => { |
| 524 | self.my_interface_lazy_iface_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_lazy_iface_info..setrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]set().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().interface_info)) |
| 525 | } |
| 526 | _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("unexpected"), |
| 527 | }; |
| 528 | } |
| 529 | |
| 530 | fn register_dynamic_typerust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPlugin][TypePluginRegisterImpl]register_dynamic_type().( |
| 531 | &self, |
| 532 | parent_type: glibrust-analyzer cargo glib 0.22.5 crate/::Typerust-analyzer cargo glib 0.22.5 types/Type#, |
| 533 | type_name: &str, |
| 534 | type_info: &glibrust-analyzer cargo glib 0.22.5 crate/::TypeInforust-analyzer cargo glib 0.22.5 gobject/type_info/TypeInfo#, |
| 535 | flags: glibrust-analyzer cargo glib 0.22.5 crate/::TypeFlagsrust-analyzer cargo glib 0.22.5 gobject/auto/flags/TypeFlags#, |
| 536 | ) -> glibrust-analyzer cargo glib 0.22.5 crate/::Typerust-analyzer cargo glib 0.22.5 types/Type# { |
| 537 | let type_ = glibrust-analyzer cargo glib 0.22.5 crate/::Typerust-analyzer cargo glib 0.22.5 types/Type#::from_namerust-analyzer cargo glib 0.22.5 types/impl#[Type]from_name().(type_name).unwrap_or_elserust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]unwrap_or_else().(|| { |
| 538 | glibrust-analyzer cargo glib 0.22.5 crate/::Typerust-analyzer cargo glib 0.22.5 types/Type#::register_dynamicrust-analyzer cargo glib 0.22.5 types/impl#[Type]register_dynamic().( |
| 539 | parent_type, |
| 540 | type_name, |
| 541 | self.objrust-analyzer cargo glib 0.22.5 subclass/types/impl#[T][ObjectSubclassExt]obj().().upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>(), |
| 542 | flags, |
| 543 | ) |
| 544 | }); |
| 545 | if type_.is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().() { |
| 546 | match type_name { |
| 547 | imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#::NAMErust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclass]NAME. => self.my_type_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_type_type_info..setrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]set().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().type_info)), |
| 548 | imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::NAMErust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterface]NAME. => { |
| 549 | self.my_interface_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_type_info..setrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]set().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().type_info)) |
| 550 | } |
| 551 | imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#::NAMErust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclass]NAME. => { |
| 552 | self.my_type_lazy_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_type_lazy_type_info..setrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]set().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().type_info)) |
| 553 | } |
| 554 | imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::NAMErust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterface]NAME. => { |
| 555 | self.my_interface_lazy_type_inforust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#my_interface_lazy_type_info..setrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cell/impl#[`Cell<T>`]set().(Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().type_info)) |
| 556 | } |
| 557 | _ => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("unexpected"), |
| 558 | }; |
| 559 | } |
| 560 | type_ |
| 561 | } |
| 562 | } |
| 563 | } |
| 564 | |
| 565 | // an object interface to register as a dynamic type and that extends `MyStaticInterface`. |
| 566 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 567 | pub struct MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterface#(ObjectInterface<imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#>) @requires MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#; |
| 568 | } |
| 569 | |
| 570 | unsafe impl<T: imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceImplrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceImpl#> IsImplementablerust-analyzer cargo glib 0.22.5 subclass/types/IsImplementable#<T> for MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterface# {} |
| 571 | |
| 572 | // an object subclass to register as a dynamic type and that extends `MyStaticType` and that implements `MyStaticInterface` and `MyPluginInterface`. |
| 573 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 574 | pub struct MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginType#(ObjectSubclass<imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#>) @extends MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#, @implements MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterface#, MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#; |
| 575 | } |
| 576 | |
| 577 | // an object interface to lazy register as a dynamic type and that extends `MyStaticInterface`. |
| 578 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 579 | pub struct MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterfaceLazy#(ObjectInterface<imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#>) @requires MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#; |
| 580 | } |
| 581 | |
| 582 | unsafe impl<T: imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceLazyImplrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazyImpl#> IsImplementablerust-analyzer cargo glib 0.22.5 subclass/types/IsImplementable#<T> for MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterfaceLazy# {} |
| 583 | |
| 584 | // an object subclass to lazy register as a dynamic type and that extends `MyStaticType` that implements `MyStaticInterface` and `MyPluginInterfaceLazy`. |
| 585 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 586 | pub struct MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginTypeLazy#(ObjectSubclass<imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#>) @extends MyStaticTyperust-analyzer cargo glib-macros 0.22.6 static_/MyStaticType#, @implements MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/MyPluginInterfaceLazy#, MyStaticInterfacerust-analyzer cargo glib-macros 0.22.6 static_/MyStaticInterface#; |
| 587 | } |
| 588 | |
| 589 | // a plugin (must implement `glib::TypePlugin`). |
| 590 | glibrust-analyzer cargo glib 0.22.5 crate/::wrapperrust-analyzer cargo glib 0.22.5 wrapper/wrapper!! { |
| 591 | pub struct MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/MyPlugin#(ObjectSubclass<imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPlugin#>) @implements glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#; |
| 592 | } |
| 593 | |
| 594 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 595 | fn dynamic_object_subclassesrust-analyzer cargo glib-macros 0.22.6 plugin/dynamic_object_subclasses().() { |
| 596 | use glibrust-analyzer cargo glib 0.22.5 crate/::preluderust-analyzer cargo glib 0.22.5 prelude/::TypePluginExtrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#; |
| 597 | |
| 598 | // checks types of object subclasses and of object interfaces to register as dynamic types are invalid (plugin is not used yet). |
| 599 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 600 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 601 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 602 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 603 | |
| 604 | // simulates the GLib type system to use/unuse the plugin. |
| 605 | let plugin = glibrust-analyzer cargo glib 0.22.5 crate/::Objectrust-analyzer cargo glib 0.22.5 object/Object#::newrust-analyzer cargo glib 0.22.5 object/impl#[Object]new().::<MyPluginrust-analyzer cargo glib-macros 0.22.6 plugin/MyPlugin#>(); |
| 606 | TypePluginExtrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#::use_rust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#use_().(&plugin); |
| 607 | TypePluginExtrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#::unuserust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#unuse().(&plugin); |
| 608 | |
| 609 | // checks types of object subclasses and of object interfaces registered as dynamic types are valid (plugin is unused). |
| 610 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 611 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 612 | // check types of object subclasses and of object interfaces that are lazy registered as dynamic types are still invalid (plugin is unused) |
| 613 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 614 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(!rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[bool][Not]not().imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 615 | |
| 616 | // simulates the GLib type system to use the plugin. |
| 617 | TypePluginExtrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#::use_rust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#use_().(&plugin); |
| 618 | |
| 619 | // checks types of object subclasses and of object interfaces registered as dynamic types are valid (plugin is used). |
| 620 | let iface_type = imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterfaceType]type_().(); |
| 621 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(iface_type.is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 622 | let obj_type = imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclassType]type_().(); |
| 623 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(obj_type.is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 624 | let iface_lazy_type = imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterfaceType]type_().(); |
| 625 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(iface_lazy_type.is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 626 | let obj_lazy_type = imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclassType]type_().(); |
| 627 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(obj_lazy_type.is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 628 | |
| 629 | // checks plugin of object subclasses and of object interfaces is `MyPlugin`. |
| 630 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 631 | iface_type.pluginrust-analyzer cargo glib 0.22.5 types/impl#[Type]plugin().().as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().(), |
| 632 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(plugin.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>()) |
| 633 | ); |
| 634 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 635 | obj_type.pluginrust-analyzer cargo glib 0.22.5 types/impl#[Type]plugin().().as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().(), |
| 636 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(plugin.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>()) |
| 637 | ); |
| 638 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 639 | iface_lazy_type.pluginrust-analyzer cargo glib 0.22.5 types/impl#[Type]plugin().().as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().(), |
| 640 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(plugin.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>()) |
| 641 | ); |
| 642 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!( |
| 643 | obj_lazy_type.pluginrust-analyzer cargo glib 0.22.5 types/impl#[Type]plugin().().as_refrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/impl#[`Option<T>`]as_ref().(), |
| 644 | Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(plugin.upcast_refrust-analyzer cargo glib 0.22.5 object/Cast#upcast_ref().::<glibrust-analyzer cargo glib 0.22.5 crate/::TypePluginrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePlugin#>()) |
| 645 | ); |
| 646 | |
| 647 | // simulates the GLib type system to unuse the plugin. |
| 648 | TypePluginExtrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#::unuserust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#unuse().(&plugin); |
| 649 | |
| 650 | // checks types of object subclasses and of object interfaces registered as dynamic types are still valid. |
| 651 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 652 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 653 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 654 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 655 | |
| 656 | // simulates the GLib type system to reuse the plugin. |
| 657 | TypePluginExtrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#::use_rust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#use_().(&plugin); |
| 658 | |
| 659 | // checks types of object subclasses and of object interfaces registered as dynamic types are still valid. |
| 660 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfacerust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterface#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterface][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 661 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTyperust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginType#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginType][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 662 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginInterfaceLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginInterfaceLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginInterfaceLazy][ObjectInterfaceType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 663 | assertrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/assert!!(imprust-analyzer cargo glib-macros 0.22.6 plugin/imp/::MyPluginTypeLazyrust-analyzer cargo glib-macros 0.22.6 plugin/imp/MyPluginTypeLazy#::type_rust-analyzer cargo glib-macros 0.22.6 plugin/imp/impl#[MyPluginTypeLazy][ObjectSubclassType]type_().().is_validrust-analyzer cargo glib 0.22.5 types/impl#[Type]is_valid().()); |
| 664 | |
| 665 | // simulates the GLib type system to unuse the plugin. |
| 666 | TypePluginExtrust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#::unuserust-analyzer cargo glib 0.22.5 gobject/type_plugin/TypePluginExt#unuse().(&plugin); |
| 667 | } |
| 668 | } |