tentatively seems to be working.

This commit is contained in:
Tom Alexander
2020-05-10 19:16:55 -04:00
parent c96b2257d7
commit 8fd2a9cf39
5 changed files with 37 additions and 1 deletions

View File

@@ -5,7 +5,7 @@ use std::any::Any;
use std::fmt::Debug;
pub trait ContextElement:
Debug + Walkable + Renderable + Loopable + IntoBoxedContextElement
Debug + Walkable + Renderable + Loopable + IntoBoxedContextElement + CompareContextElement
{
}
@@ -32,6 +32,8 @@ pub trait Loopable {
pub trait CompareContextElement {
fn to_any(&self) -> &dyn Any;
fn equals(&self, other: &dyn ContextElement) -> bool;
}
pub trait IntoBoxedContextElement {