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§

Source§

impl Backend<&Function> for Cpu

Available on crate features dyn_cpu_backend and cpu_backend only.
Source§

impl Backend<&Function> for OpenCl

Available on crate feature opencl_backend only.
Source§

impl Backend<&Function> for Vulkan

Available on crate feature vulkan_backend only.
Source§

impl<F: ComputePoint> Backend<F> for Cpu

Available on crate feature cpu_backend only.