Backend

Trait Backend 

Source
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.

Required Associated Types§

Source

type Error: Debug + Display

Error that may be returned during program creation.

Source

type Program: Render

Program output by the backend.

Required Methods§

Source

fn create_program(&self, function: In) -> Result<Self::Program, Self::Error>

Creates a program.

§Errors

May return an error if program cannot be created (out of memory, etc.).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§