~starkingdoms/starkingdoms

ref: cde0f4a24c4e1a20c312e1a615f7fccf285286f9 starkingdoms/client/src/rendering/mod.rs -rw-r--r-- 203 bytes
cde0f4a2 — core fix double mutable borrow with replacement 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
use std::error::Error;
use async_trait::async_trait;

pub mod renderer;

#[async_trait]
pub trait Renderer {
    async fn get(canvas_element_id: &str) -> Result<Self, Box<dyn Error>> where Self: Sized;
}