Skip to main content

FinalCargoPlan

Trait FinalCargoPlan 

Source
pub trait FinalCargoPlan {
    // Required methods
    fn final_plan_id(&self) -> PlanId;
    fn final_link_unit(&self) -> LinkUnitId;
    fn final_plan_format(&self) -> &'static str;
    fn final_plan_file_suffix(&self) -> &'static str;
    fn final_plan_json(&self) -> Result<Value, String>;
}
Expand description

Linked-plan variants accepted by the final Cargo runner.

Required Methods§

Source

fn final_plan_id(&self) -> PlanId

Strong plan identity used for Cargo invalidation.

Exact root graph identity.

Source

fn final_plan_format(&self) -> &'static str

External JSON format discriminator.

Source

fn final_plan_file_suffix(&self) -> &'static str

Content-addressed filename suffix.

Source

fn final_plan_json(&self) -> Result<Value, String>

Complete deterministic JSON value expected at the linked-plan path.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§