mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
wip: Content and Widget traits
This commit is contained in:
parent
5fc7da3aca
commit
b944dd5f9e
13 changed files with 209 additions and 36 deletions
|
|
@ -18,7 +18,7 @@ pub trait Device<E: Engine>: Component<E> + Process {
|
|||
/// All things that implement the required traits can be treated as `Device`.
|
||||
impl<D, E: Engine> Device<E> for D where D: Component<E> + Process {}
|
||||
|
||||
impl<E: Engine> Render<E> for Box<dyn Device<E>> {
|
||||
impl<'a, E: Engine> Render<E> for Box<dyn Device<E> + 'a> {
|
||||
fn render (&self, to: &mut E) -> Perhaps<E::Rendered> {
|
||||
(**self).render(to)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue