Skip to main content

DrawBackend

Trait DrawBackend 

Source
pub trait DrawBackend {
    type Error;

    // Required methods
    fn apply(&mut self, command: Command) -> Result<(), Self::Error>;
    fn close(self) -> Result<(), Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn apply(&mut self, command: Command) -> Result<(), Self::Error>

Source

fn close(self) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§