pub struct FunctionData { /* private fields */ }
Implementations§
Source§impl FunctionData
impl FunctionData
pub fn new( name: String, file_id: FileID, body: Statement, num_of_params: usize, name_of_params: Vec<String>, param_location: FileLocation, elem_id: &mut usize, ) -> FunctionData
pub fn get_file_id(&self) -> FileID
pub fn get_body(&self) -> &Statement
pub fn get_body_as_vec(&self) -> &Vec<Statement>
pub fn get_mut_body(&mut self) -> &mut Statement
pub fn replace_body(&mut self, new: Statement) -> Statement
pub fn get_mut_body_as_vec(&mut self) -> &mut Vec<Statement>
pub fn get_param_location(&self) -> FileLocation
pub fn get_num_of_params(&self) -> usize
pub fn get_name_of_params(&self) -> &Vec<String>
pub fn get_name(&self) -> &str
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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