pub struct FunctionTemplate {
pub body_ptr: *const FunctionBodyData,
pub params_ptr: *const Vec<PatternType>,
}Expand description
A stored function template — raw pointers to AST nodes captured at compile time.
Fields§
§body_ptr: *const FunctionBodyDataPointer to the function body AST node.
params_ptr: *const Vec<PatternType>Pointer to the formal parameter list.
Trait Implementations§
Source§impl Clone for FunctionTemplate
impl Clone for FunctionTemplate
Source§fn clone(&self) -> FunctionTemplate
fn clone(&self) -> FunctionTemplate
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 FunctionTemplate
impl Debug for FunctionTemplate
impl Copy for FunctionTemplate
impl Send for FunctionTemplate
impl Sync for FunctionTemplate
Auto Trait Implementations§
impl Freeze for FunctionTemplate
impl RefUnwindSafe for FunctionTemplate
impl Unpin for FunctionTemplate
impl UnwindSafe for FunctionTemplate
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