Expand description
§gir-parser
A GObject introspection GIR files parser.
use gir_parser::{Repository, prelude::*};
let repository = Repository::from_path(format!("./gir-files/Gtk-4.0.gir")).unwrap();
for class in repository.namespace().classes().iter() {
for method in class.methods() {
println!("{}", method.name());
println!("{}", method.doc().unwrap().text());
}
}
Modules§
Structs§
- Alias
- Array
- Attribute
- BitField
- Boxed
- Callback
- Class
- Constant
- DocDeprecated
- DocStability
- DocVersion
- Documentation
- Enumeration
- Field
- Function
- Function
Inline - Function
Macro - Header
Include - Implements
- Instance
Parameter - Interface
- Member
- Method
- Method
Inline - Namespace
- Namespace
Include - Package
- Parameter
- Parameters
- Prerequisite
- Property
- Record
- Repository
- Return
Value - Signal
- Source
Position - Type
- Union
- Version
- Virtual
Method