mirror of
https://github.com/Dummi26/mers.git
synced 2025-03-10 14:13:52 +01:00
improve iter types
This commit is contained in:
parent
8bdd6e00e8
commit
fcd70c8dc4
@ -343,12 +343,15 @@ impl IterT {
|
|||||||
}
|
}
|
||||||
impl MersType for IterT {
|
impl MersType for IterT {
|
||||||
fn is_same_type_as(&self, other: &dyn MersType) -> bool {
|
fn is_same_type_as(&self, other: &dyn MersType) -> bool {
|
||||||
|
if let Some(other) = other.as_any().downcast_ref::<Self>() {
|
||||||
|
self.2.is_same_type_as(&other.2)
|
||||||
|
} else {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fn is_included_in_single(&self, target: &dyn MersType) -> bool {
|
fn is_included_in_single(&self, target: &dyn MersType) -> bool {
|
||||||
if let Some(target) = target.as_any().downcast_ref::<Self>() {
|
if let Some(target) = target.as_any().downcast_ref::<Self>() {
|
||||||
// TODO: ?
|
self.2.is_included_in(&target.2)
|
||||||
false
|
|
||||||
} else {
|
} else {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user