pub struct Function { /* private fields */ }
Implementations§
Source§impl Function
impl Function
pub fn new( name: OptionalIdentifier, params: Vec<Parameter>, return_type: CortexType, body: Body, type_param_names: Vec<String>, ) -> Self
pub fn member_func( name: OptionalIdentifier, params: Vec<Parameter>, return_type: CortexType, body: Body, this_arg: ThisArg, type_param_names: Vec<String>, ) -> Self
pub fn name(&self) -> &OptionalIdentifier
pub fn return_type(&self) -> &CortexType
pub fn num_params(&self) -> usize
pub fn get_param(&self, index: usize) -> Option<&Parameter>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
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