Compiling.

Need to see if I can do a generic implemented of IntoBoxedContextElement for all objects implementing Copy, and I need to implement the compare code to make sure this all works before I start integrating this more.
This commit is contained in:
Tom Alexander
2020-05-10 19:07:41 -04:00
parent 5c79b436a0
commit c96b2257d7
4 changed files with 18 additions and 20 deletions

View File

@@ -35,13 +35,7 @@ pub trait CompareContextElement {
}
pub trait IntoBoxedContextElement {
fn to_box(self) -> Box<dyn ContextElement>;
}
impl<C: 'static + ContextElement> IntoBoxedContextElement for C {
fn to_box(self) -> Box<dyn ContextElement> {
Box::new(self)
}
fn clone_to_box(&self) -> Box<dyn ContextElement>;
}
// impl PartialEq<dyn ContextElement> for dyn ContextElement {