Struct debris_parser::ast::Function
source · pub struct Function(AstNode);
Tuple Fields§
§0: AstNode
Implementations§
source§impl Function
impl Function
pub fn attributes(&self) -> Option<AttributeList>
pub fn comptime_token(&self) -> Option<ComptimeToken>
pub fn ident(&self) -> Option<Ident>
pub fn param_declaration_list(&self) -> ParamListDecl
pub fn ret_declaration(&self) -> Option<Pattern>
pub fn block(&self) -> Block
Trait Implementations§
Auto Trait Implementations§
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