Derive more traits for widgets

This commit is contained in:
Joscha 2023-04-08 15:40:14 +02:00
parent 77e72de9ad
commit 007493f136
6 changed files with 10 additions and 1 deletions

View file

@ -2,6 +2,7 @@ use async_trait::async_trait;
use crate::{AsyncWidget, Frame, Size, Widget, WidthDb};
#[derive(Debug, Clone)]
pub struct Layer<I> {
layers: Vec<I>,
}
@ -73,6 +74,7 @@ macro_rules! mk_layer {
$( pub $arg:ident: $type:ident, )+
}
) => {
#[derive(Debug, Clone, Copy)]
pub struct $name< $($type),+ >{
$( pub $arg: $type, )+
}