Struct AstFunction
pub struct AstFunction {
pub node_id: AstNodeId,
pub declared_type: AstDeclaredType,
pub ident: AstIdentifier,
pub unique_name: AstUniqueName,
pub param_names: Vec<(AstIdentifier, AstUniqueName)>,
pub body: Option<AstBlock>,
pub linkage: AstLinkage,
}Expand description
A function declaration with optional definition.
Fields§
§node_id: AstNodeId§declared_type: AstDeclaredType§ident: AstIdentifier§unique_name: AstUniqueName§param_names: Vec<(AstIdentifier, AstUniqueName)>§body: Option<AstBlock>§linkage: AstLinkageTrait Implementations§
Auto Trait Implementations§
impl Freeze for AstFunction
impl RefUnwindSafe for AstFunction
impl Send for AstFunction
impl Sync for AstFunction
impl Unpin for AstFunction
impl UnwindSafe for AstFunction
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