pub struct FunctionData {
pub name: Token,
pub params: Vec<Token>,
pub body: Vec<Stmt>,
}Expand description
Represents a function statement’s data in the language.
Fields§
§name: TokenThe function’s name.
params: Vec<Token>The function’s parameters.
body: Vec<Stmt>The function’s body.
Trait Implementations§
Source§impl Clone for FunctionData
impl Clone for FunctionData
Source§fn clone(&self) -> FunctionData
fn clone(&self) -> FunctionData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionData
impl Debug for FunctionData
Source§impl PartialEq for FunctionData
impl PartialEq for FunctionData
impl StructuralPartialEq for FunctionData
Auto Trait Implementations§
impl Freeze for FunctionData
impl RefUnwindSafe for FunctionData
impl Send for FunctionData
impl Sync for FunctionData
impl Unpin for FunctionData
impl UnwindSafe for FunctionData
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