pub struct BoundFn {
pub wrapped: Value,
pub captured_bindings: HashMap<usize, Value>,
}Expand description
A function wrapped with captured dynamic bindings. When called, the captured bindings are pushed as a frame before delegating to the wrapped function. This means captured bindings override the caller’s for the same var, but vars not in the capture fall through normally.
Fields§
§wrapped: ValueThe wrapped callable.
captured_bindings: HashMap<usize, Value>Captured dynamic bindings (merged flat frame; opaque to cljrs-value).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BoundFn
impl !Send for BoundFn
impl !Sync for BoundFn
impl !UnwindSafe for BoundFn
impl Freeze for BoundFn
impl Unpin for BoundFn
impl UnsafeUnpin for BoundFn
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