pub struct CompiledFunction {
pub name: String,
pub python_source: String,
pub param_names: Vec<String>,
pub shape_body_start_line: u32,
pub is_async: bool,
pub return_type: String,
}Expand description
Opaque handle to a compiled Python function.
Fields§
§name: StringThe function name in Shape.
python_source: StringGenerated Python source for the wrapper function.
param_names: Vec<String>Parameter names in call order.
shape_body_start_line: u32Shape source line where the foreign block body starts (for error mapping).
is_async: boolWhether the function was declared async in Shape.
return_type: StringDeclared return type string from Shape (e.g. “Result
Auto Trait Implementations§
impl Freeze for CompiledFunction
impl RefUnwindSafe for CompiledFunction
impl Send for CompiledFunction
impl Sync for CompiledFunction
impl Unpin for CompiledFunction
impl UnsafeUnpin for CompiledFunction
impl UnwindSafe for CompiledFunction
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