pub struct Function {
pub name: String,
pub arguments: Vec<PatType>,
pub ret: Option<Type>,
}
Expand description
Information about a function being imported or exported
Fields§
§name: String
The name of the function
arguments: Vec<PatType>
The arguments to the function
ret: Option<Type>
The return type of the function, if provided
Trait Implementations§
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