pub struct Compiled {
pub plan: Plan,
pub id: PlanId,
/* private fields */
}Expand description
A plan with everything evaluation needs.
Fields§
§plan: Plan§id: PlanIdImplementations§
Source§impl Compiled
impl Compiled
Sourcepub fn load(
plan: &Plan,
descriptors: &[BackendDescriptor],
calibrations: &[CalibrationArtifact],
) -> Result<Compiled, Refusal>
pub fn load( plan: &Plan, descriptors: &[BackendDescriptor], calibrations: &[CalibrationArtifact], ) -> Result<Compiled, Refusal>
Load a plan document by recompiling its embedded definition, with its embedded execution policy, against the same descriptors and calibrations; refused unless the result is byte-identical to the document.
Sourcepub fn load_with_sources(
plan: &Plan,
descriptors: &[BackendDescriptor],
calibrations: &[CalibrationArtifact],
sources: &[SourceDescriptor],
) -> Result<Compiled, Refusal>
pub fn load_with_sources( plan: &Plan, descriptors: &[BackendDescriptor], calibrations: &[CalibrationArtifact], sources: &[SourceDescriptor], ) -> Result<Compiled, Refusal>
Compiled::load with source descriptors, for a plan 3 that binds
sources (spec 032, 3.3.4).
Sourcepub fn load_checked(
plan: &Plan,
descriptors: &[BackendDescriptor],
calibrations: &[CalibrationArtifact],
) -> Result<Compiled, LoadError>
pub fn load_checked( plan: &Plan, descriptors: &[BackendDescriptor], calibrations: &[CalibrationArtifact], ) -> Result<Compiled, LoadError>
Compiled::load with a typed diagnostic (spec 004, 5.2): a changed
compiler or exact-operator registry, a binding dependency not
supplied, or a plan that does not recompile identically under this
compiler. It shares load’s recompile and equality check; there is
no recompile-and-accept fallback. The dependency list is read from
the plan document itself, so a caller verifies the document’s digest
or identity first: a tampered plan naming a bogus descriptor reports
that descriptor missing, not a mismatch.
Sourcepub fn load_checked_with_sources(
plan: &Plan,
descriptors: &[BackendDescriptor],
calibrations: &[CalibrationArtifact],
sources: &[SourceDescriptor],
) -> Result<Compiled, LoadError>
pub fn load_checked_with_sources( plan: &Plan, descriptors: &[BackendDescriptor], calibrations: &[CalibrationArtifact], sources: &[SourceDescriptor], ) -> Result<Compiled, LoadError>
Compiled::load_checked with source descriptors, for a plan 3
that binds sources (spec 032, 3.3.4); without them such a plan is a
mismatch carrying the category 15 refusal.