photonic 0.1.1

Dynamic light controller and animator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::future::Future;

use crate::BufferReader;
use anyhow::Result;

pub trait Output: Sized {
    const KIND: &'static str;

    type Element;

    fn render(&mut self, out: impl BufferReader<Element = Self::Element>) -> impl Future<Output = Result<()>>;

    fn size(&self) -> usize;
}