pub struct GoFunc {
pub name: String,
pub receiver: Option<(String, GoType)>,
pub params: Vec<(String, GoType)>,
pub return_types: Vec<GoType>,
pub body: Vec<GoStmt>,
pub exported: bool,
}Expand description
A named Go function.
Fields§
§name: StringFunction name.
receiver: Option<(String, GoType)>Receiver (for methods): (recv_name recv_type).
params: Vec<(String, GoType)>Parameter list: [(name, type), ...].
return_types: Vec<GoType>Return type list.
body: Vec<GoStmt>Function body statements.
exported: boolWhether exported (capitalised).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GoFunc
impl RefUnwindSafe for GoFunc
impl Send for GoFunc
impl Sync for GoFunc
impl Unpin for GoFunc
impl UnsafeUnpin for GoFunc
impl UnwindSafe for GoFunc
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