pub struct EvalContext<'a> {
pub slots: &'a [(&'static str, ContextValue)],
pub logical_time: u64,
pub depth_limit: u8,
}Expand description
Opaque evaluation context passed through the pipeline.
In an embedded context this can be a fixed-size struct on the stack.
In a std context it wraps a hash map for arbitrary key-value state.
Fields§
§slots: &'a [(&'static str, ContextValue)]Flat key-value pairs — avoids HashMap for no_std compatibility.
logical_time: u64Current logical time (for temporal engines). Nanoseconds since epoch, or a monotonic counter on embedded targets.
depth_limit: u8Maximum recursion depth allowed for this evaluation.
Implementations§
Source§impl<'a> EvalContext<'a>
impl<'a> EvalContext<'a>
pub fn get(&self, key: &'static str) -> Option<&ContextValue>
Auto Trait Implementations§
impl<'a> Freeze for EvalContext<'a>
impl<'a> RefUnwindSafe for EvalContext<'a>
impl<'a> Send for EvalContext<'a>
impl<'a> Sync for EvalContext<'a>
impl<'a> Unpin for EvalContext<'a>
impl<'a> UnsafeUnpin for EvalContext<'a>
impl<'a> UnwindSafe for EvalContext<'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