pub struct Function {
pub name: String,
pub return_type: Type,
pub parameters: Vec<Parameter>,
pub body: Vec<Statement>,
}Expand description
Represents a C function.
Fields§
§name: StringFunction name
return_type: TypeReturn type
parameters: Vec<Parameter>Parameters
body: Vec<Statement>Function body (statements)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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