pub struct EvalContext<'a> {
pub var_name: &'a str,
pub scope: &'a dyn Lookup,
pub prefix: &'a [(String, Value)],
}Expand description
Per-evaluation context for context-required sources.
Carries the live kernel against which Source::Generator
spec-text and Source::WorkloadParamList lookups resolve.
var_name lets the source synthesise a useful error
message; prefix is the prior-axis bindings the evaluator
installs via PolydatKernel::materialize_subscope so dependent
sources see earlier-axis values.
Fields§
§var_name: &'a strThe clause’s element name, for messages.
scope: &'a dyn LookupWhere the source’s names resolve: the body’s scope with the parent’s cascaded wires.
prefix: &'a [(String, Value)]The prior-axis bindings, in axis order.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EvalContext<'a>
impl<'a> !Send for EvalContext<'a>
impl<'a> !Sync for EvalContext<'a>
impl<'a> !UnwindSafe for EvalContext<'a>
impl<'a> Freeze for EvalContext<'a>
impl<'a> Unpin for EvalContext<'a>
impl<'a> UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more