pub enum TypeDefItem {
Typedef {
name: String,
target: TypedefTarget,
struct_fields: Vec<StructField>,
location: SourceLocation,
doc: Option<TypeDoc>,
},
Struct {
name: String,
fields: Vec<StructField>,
vfuncs: Vec<VirtualFunction>,
location: SourceLocation,
doc: Option<TypeDoc>,
},
Enum(Box<EnumInfo>),
}Variants§
Typedef
Fields
§
target: TypedefTarget§
struct_fields: Vec<StructField>Fields when the typedef wraps an inline struct body:
typedef struct { FieldType field; } Name;
§
location: SourceLocationStruct
Fields
§
fields: Vec<StructField>§
vfuncs: Vec<VirtualFunction>Virtual functions (function pointer fields) extracted from class
structs (structs whose name ends with Class).
§
location: SourceLocationEnum(Box<EnumInfo>)
Implementations§
Source§impl TypeDefItem
impl TypeDefItem
Sourcepub fn is_vtable_struct(&self) -> bool
pub fn is_vtable_struct(&self) -> bool
True for GObject class/interface vtable structs whose fields should not
be checked for dead code: any struct with vfuncs, or any type whose
bare name ends with Class or Interface.
Trait Implementations§
Source§impl Clone for TypeDefItem
impl Clone for TypeDefItem
Source§impl Debug for TypeDefItem
impl Debug for TypeDefItem
Auto Trait Implementations§
impl Freeze for TypeDefItem
impl RefUnwindSafe for TypeDefItem
impl Send for TypeDefItem
impl Sync for TypeDefItem
impl Unpin for TypeDefItem
impl UnsafeUnpin for TypeDefItem
impl UnwindSafe for TypeDefItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more