pub struct PFunction { /* private fields */ }
Implementations§
Source§impl PFunction
impl PFunction
pub fn new( name: OptionalIdentifier, params: Vec<Parameter>, return_type: CortexType, body: Body, 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 PFunction
impl !RefUnwindSafe for PFunction
impl !Send for PFunction
impl !Sync for PFunction
impl Unpin for PFunction
impl !UnwindSafe for PFunction
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