pub trait Backend<In>: Default {
type Error: Debug + Display;
type Program: Render;
// Required method
fn create_program(&self, function: In) -> Result<Self::Program, Self::Error>;
}
Expand description
Backend capable of converting an input (the type parameter) into a program. The program
then can be used to Render
the Julia set with various rendering Params
.
Error that may be returned during program creation.
Program output by the backend.
Creates a program.
May return an error if program cannot be created (out of memory, etc.).