pub struct Typedef {
pub name: String,
pub underlying_type: Type,
}Expand description
Represents a C typedef declaration.
Fields§
§name: StringTypedef name (the alias)
underlying_type: TypeUnderlying type being aliased
Implementations§
Source§impl Typedef
impl Typedef
Sourcepub fn underlying_type(&self) -> &str
pub fn underlying_type(&self) -> &str
Get the underlying type as a string representation.
Sourcepub fn is_pointer(&self) -> bool
pub fn is_pointer(&self) -> bool
Check if this typedef is a pointer type.
Sourcepub fn is_function_pointer(&self) -> bool
pub fn is_function_pointer(&self) -> bool
Check if this typedef is a function pointer type.
Trait Implementations§
impl StructuralPartialEq for Typedef
Auto Trait Implementations§
impl Freeze for Typedef
impl RefUnwindSafe for Typedef
impl Send for Typedef
impl Sync for Typedef
impl Unpin for Typedef
impl UnwindSafe for Typedef
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