pub struct AllocCallExpression {
pub function: Box<Expression>,
pub allocated_type: TypeInfo,
pub arguments: Vec<Box<Expression>>,
pub location: SourceLocation,
}Expand description
GLib allocation call: g_new(Type, n), g_renew(Type *, ptr, n), etc. These take a type as the first argument, not an expression.
Fields§
§function: Box<Expression>The allocation function (g_new, g_new0, g_renew, g_slice_new, etc.)
allocated_type: TypeInfoThe type being allocated (parsed into TypeInfo)
arguments: Vec<Box<Expression>>The remaining arguments (e.g., count, existing pointer, etc.)
location: SourceLocationTrait Implementations§
Source§impl Clone for AllocCallExpression
impl Clone for AllocCallExpression
Source§impl Debug for AllocCallExpression
impl Debug for AllocCallExpression
Auto Trait Implementations§
impl Freeze for AllocCallExpression
impl RefUnwindSafe for AllocCallExpression
impl Send for AllocCallExpression
impl Sync for AllocCallExpression
impl Unpin for AllocCallExpression
impl UnsafeUnpin for AllocCallExpression
impl UnwindSafe for AllocCallExpression
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