pub struct ExpansionContext<'a> { /* private fields */ }Expand description
Context for inline expansion of user-defined functions.
Implementations§
Source§impl<'a> ExpansionContext<'a>
impl<'a> ExpansionContext<'a>
Sourcepub fn new(registry: &'a FunctionRegistry, max_depth: u32) -> Self
pub fn new(registry: &'a FunctionRegistry, max_depth: u32) -> Self
Create an expansion context with the given function registry and recursion limit.
Sourcepub fn expand_call(
&mut self,
name: &str,
args: &[ArithExpr],
) -> Result<ArithExpr, FunctionError>
pub fn expand_call( &mut self, name: &str, args: &[ArithExpr], ) -> Result<ArithExpr, FunctionError>
Expand a function call to its body with arguments substituted
Auto Trait Implementations§
impl<'a> Freeze for ExpansionContext<'a>
impl<'a> RefUnwindSafe for ExpansionContext<'a>
impl<'a> Send for ExpansionContext<'a>
impl<'a> Sync for ExpansionContext<'a>
impl<'a> Unpin for ExpansionContext<'a>
impl<'a> UnsafeUnpin for ExpansionContext<'a>
impl<'a> UnwindSafe for ExpansionContext<'a>
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