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