pub trait ShapeProgramAlg<Alg> {
type Ty;
// Required method
fn compile_shape(self, alg: &Alg) -> Self::Ty;
}Expand description
States the shape a declaration denotes, once an algebra interprets it.
Required Associated Types§
Required Methods§
Sourcefn compile_shape(self, alg: &Alg) -> Self::Ty
fn compile_shape(self, alg: &Alg) -> Self::Ty
Folds this declaration with the algebra.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".