pub trait EvaluationInput {
// Required methods
fn pin(&self) -> &Pin;
fn snapshot(&self) -> &Snapshot<Canonical>;
fn scope(&self) -> &PinScope;
fn files(&self) -> Option<&EvaluationFiles>;
fn source_snapshot(&self) -> Option<&Snapshot<Canonical>>;
fn family_defaults(&self) -> Option<&FamilyDefaults>;
}Expand description
Anything the evaluator can read: a context that has at least a scope.
Implemented for EvaluationContext<Scoped> and EvaluationContext<Sourced>.
Required Methods§
fn pin(&self) -> &Pin
fn snapshot(&self) -> &Snapshot<Canonical>
fn scope(&self) -> &PinScope
fn files(&self) -> Option<&EvaluationFiles>
fn source_snapshot(&self) -> Option<&Snapshot<Canonical>>
fn family_defaults(&self) -> Option<&FamilyDefaults>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".