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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user