pub struct ExtractFnSpec {
pub name: String,
pub type_params: Vec<String>,
pub params: Vec<Param>,
pub return_type: TypeExpr,
pub effects: Vec<Effect>,
}Expand description
Specification of the new function that extract_function
produces. The agent provides this — slice 4 doesn’t infer
types or effects from the surrounding context. The transform
verifies the param set matches the extracted expression’s free
variables; the type-checker (downstream) catches mismatches in
types, effects, and return type.
Fields§
§name: String§type_params: Vec<String>§params: Vec<Param>§return_type: TypeExpr§effects: Vec<Effect>Trait Implementations§
Source§impl Clone for ExtractFnSpec
impl Clone for ExtractFnSpec
Source§fn clone(&self) -> ExtractFnSpec
fn clone(&self) -> ExtractFnSpec
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 ExtractFnSpec
impl Debug for ExtractFnSpec
Source§impl PartialEq for ExtractFnSpec
impl PartialEq for ExtractFnSpec
impl StructuralPartialEq for ExtractFnSpec
Auto Trait Implementations§
impl Freeze for ExtractFnSpec
impl RefUnwindSafe for ExtractFnSpec
impl Send for ExtractFnSpec
impl Sync for ExtractFnSpec
impl Unpin for ExtractFnSpec
impl UnsafeUnpin for ExtractFnSpec
impl UnwindSafe for ExtractFnSpec
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