improve iter types

This commit is contained in:
Mark 2023-11-10 13:49:18 +01:00
parent 8bdd6e00e8
commit fcd70c8dc4

View File

@ -343,12 +343,15 @@ impl IterT {
}
impl MersType for IterT {
fn is_same_type_as(&self, other: &dyn MersType) -> bool {
false
if let Some(other) = other.as_any().downcast_ref::<Self>() {
self.2.is_same_type_as(&other.2)
} else {
false
}
}
fn is_included_in_single(&self, target: &dyn MersType) -> bool {
if let Some(target) = target.as_any().downcast_ref::<Self>() {
// TODO: ?
false
self.2.is_included_in(&target.2)
} else {
false
}