mirror of
https://github.com/Dummi26/mers.git
synced 2026-03-04 08:36:33 +01:00
more iter functions
This commit is contained in:
@@ -323,7 +323,8 @@ impl Type {
|
||||
|
||||
impl MersType for Type {
|
||||
fn is_same_type_as(&self, other: &dyn MersType) -> bool {
|
||||
todo!()
|
||||
// TODO! improve
|
||||
self.is_included_in(other) && other.is_included_in(self)
|
||||
}
|
||||
fn is_included_in_single(&self, target: &dyn MersType) -> bool {
|
||||
self.types.iter().all(|t| t.is_included_in_single(target))
|
||||
|
||||
Reference in New Issue
Block a user