pub struct PythonFunction {
pub params: Vec<String>,
pub body: Vec<String>,
pub captures: BTreeMap<String, PythonValue>,
pub annotations: BTreeMap<String, Annotation>,
}Expand description
Directly interpreted Python function with captured lexical values.
Fields§
§params: Vec<String>Parameters in declaration order.
body: Vec<String>Token body retained for direct evaluation.
captures: BTreeMap<String, PythonValue>Captured bindings.
annotations: BTreeMap<String, Annotation>Retained annotations.
Trait Implementations§
Source§impl Clone for PythonFunction
impl Clone for PythonFunction
Source§fn clone(&self) -> PythonFunction
fn clone(&self) -> PythonFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PythonFunction
impl Debug for PythonFunction
Source§impl PartialEq for PythonFunction
impl PartialEq for PythonFunction
impl StructuralPartialEq for PythonFunction
Auto Trait Implementations§
impl Freeze for PythonFunction
impl RefUnwindSafe for PythonFunction
impl Send for PythonFunction
impl Sync for PythonFunction
impl Unpin for PythonFunction
impl UnsafeUnpin for PythonFunction
impl UnwindSafe for PythonFunction
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