pub struct ZigFn {
pub name: String,
pub params: Vec<(String, ZigType)>,
pub ret_ty: ZigType,
pub body: Vec<ZigStmt>,
pub is_pub: bool,
pub is_async: bool,
}Expand description
Represents a Zig function definition.
Fields§
§name: String§params: Vec<(String, ZigType)>§ret_ty: ZigType§body: Vec<ZigStmt>§is_pub: bool§is_async: boolImplementations§
Auto Trait Implementations§
impl Freeze for ZigFn
impl RefUnwindSafe for ZigFn
impl Send for ZigFn
impl Sync for ZigFn
impl Unpin for ZigFn
impl UnsafeUnpin for ZigFn
impl UnwindSafe for ZigFn
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