mirror of
https://github.com/Noratrieb/elven-forest.git
synced 2026-03-14 21:26:04 +01:00
basic symbol resolution
This commit is contained in:
parent
898e84363a
commit
0b3225c92c
3 changed files with 88 additions and 36 deletions
|
|
@ -57,6 +57,14 @@ macro_rules! const_group_with_fmt {
|
|||
}
|
||||
}
|
||||
|
||||
impl PartialEq<$struct_name> for $struct_name {
|
||||
fn eq(&self, other: &$struct_name) -> bool {
|
||||
self.0 == other.0
|
||||
}
|
||||
}
|
||||
|
||||
impl Eq for $struct_name {}
|
||||
|
||||
impl PartialOrd<$ty> for $struct_name {
|
||||
fn partial_cmp(&self, other: &$ty) -> Option<std::cmp::Ordering> {
|
||||
self.0.partial_cmp(other)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue