pub struct Function {
pub span: Span,
pub linkage: Option<LinkingDirective>,
pub entry: bool,
pub name: String,
pub attributes: Vec<Attribute>,
pub directives: Vec<FunctionDirective>,
pub params: Vec<Parameter>,
pub return_params: Vec<Parameter>,
pub body: Option<Vec<Statement>>,
}Fields§
§span: Span§linkage: Option<LinkingDirective>§entry: bool§name: String§attributes: Vec<Attribute>§directives: Vec<FunctionDirective>§params: Vec<Parameter>§return_params: Vec<Parameter>§body: Option<Vec<Statement>>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 UnsafeUnpin 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