pub struct FunctionDef { /* private fields */ }Implementations§
Source§impl FunctionDef
impl FunctionDef
pub fn new_wrapped( name: String, args: Vec<AST>, kwargs: LinkedHashMap<String, AST>, body: Vec<AST>, ) -> Arc<RwLock<Self>>
pub fn to_python_ast_node<'a>( &self, py: Python<'_>, ast_module: &'a PyModule, depth: usize, ) -> PyResult<&'a PyAny>
pub fn to_r_ast_node(&self, depth: usize) -> Robj
pub fn new( name: String, args: Vec<AST>, kwargs: LinkedHashMap<String, AST>, body: Vec<AST>, ) -> Self
pub fn clone_without_ancestors(&self) -> Self
pub fn set_ancestors(&mut self, ancestors: Vec<AncestorRecord>)
pub fn get_ancestors(&self) -> Option<Vec<AncestorRecord>>
pub fn name(&self) -> String
pub fn args(&self) -> Vec<AST>
pub fn kwargs(&self) -> LinkedHashMap<String, AST>
pub fn body(&self) -> Vec<AST>
pub fn get_direct_descendants(&self) -> Vec<AST>
Trait Implementations§
Source§impl Clone for FunctionDef
impl Clone for FunctionDef
Source§fn clone(&self) -> FunctionDef
fn clone(&self) -> FunctionDef
Returns a copy 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 Hash for FunctionDef
impl Hash for FunctionDef
Source§impl PartialEq for FunctionDef
impl PartialEq for FunctionDef
impl Eq for FunctionDef
impl StructuralPartialEq for FunctionDef
Auto Trait Implementations§
impl Freeze for FunctionDef
impl RefUnwindSafe for FunctionDef
impl Send for FunctionDef
impl Sync for FunctionDef
impl Unpin for FunctionDef
impl UnwindSafe for FunctionDef
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