Implement a SelectContext for passing the select parameters and whether or not any comparison passed down exactly 1 level in the renderer.

This commit is contained in:
Tom Alexander
2020-06-07 18:33:34 -04:00
parent b0b857147d
commit 576d94780a
3 changed files with 18 additions and 13 deletions

View File

@@ -13,7 +13,6 @@ pub trait ContextElement:
+ Walkable
+ Renderable
+ Loopable
// + CloneIntoBoxedContextElement
+ CompareContextElement
+ FromContextElement
+ IntoRcIce
@@ -64,16 +63,6 @@ pub trait CompareContextElement: CastToAny {
fn partial_compare(&self, other: &dyn ContextElement) -> Option<Ordering>;
}
// pub trait CloneIntoBoxedContextElement {
// fn clone_to_box(&self) -> Box<dyn IntoContextElement>;
// }
// impl<C: 'static + IntoContextElement + Clone> CloneIntoBoxedContextElement for C {
// fn clone_to_box(&self) -> Box<dyn IntoContextElement> {
// Box::new(self.clone())
// }
// }
impl<C: 'static + ContextElement> CastToAny for C {
fn to_any(&self) -> &dyn Any {
self