pub struct FunctionData { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Clone for FunctionData
impl Clone for FunctionData
sourcefn clone(&self) -> FunctionData
fn clone(&self) -> FunctionData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl From<&FunctionData> for Parameters
impl From<&FunctionData> for Parameters
sourcefn from(function: &FunctionData) -> Parameters
fn from(function: &FunctionData) -> Parameters
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for FunctionData
impl Send for FunctionData
impl Sync for FunctionData
impl Unpin for FunctionData
impl UnwindSafe for FunctionData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more