geo_aid_script::math

Trait Reconstruct

source
pub trait Reconstruct {
    // Required method
    fn reconstruct(self, ctx: &mut ReconstructCtx<'_>) -> Self;
}
Expand description

The main actor in reconstruction process.

The point of a reconstruction is to remove all potential forward references for the sake of later processing. This means that if a reconstructed expression requires some other expressions to be computed before it can be computed itself, those expressions will have a smaller index in the expression vector.

Required Methods§

source

fn reconstruct(self, ctx: &mut ReconstructCtx<'_>) -> Self

Reconstruct the value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Reconstruct for VarIndex

source§

fn reconstruct(self, ctx: &mut ReconstructCtx<'_>) -> Self

source§

impl<T: Reconstruct> Reconstruct for Option<T>

source§

fn reconstruct(self, ctx: &mut ReconstructCtx<'_>) -> Self

source§

impl<T: Reconstruct> Reconstruct for Box<T>

source§

fn reconstruct(self, ctx: &mut ReconstructCtx<'_>) -> Self

source§

impl<T: Reconstruct> Reconstruct for Vec<T>

source§

fn reconstruct(self, ctx: &mut ReconstructCtx<'_>) -> Self

Implementors§