1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use std::cmp::Ordering;
use std::fmt::{Display, Formatter, Result as FmtResult};
use std::hash::{Hash, Hasher};
use super::*;
impl PartialEq for dyn TTerm {
fn eq(&self, other: &dyn TTerm) -> bool {
term_eq(self, other)
}
}
impl Eq for dyn TTerm {}
impl PartialOrd for dyn TTerm {
fn partial_cmp(&self, other: &dyn TTerm) -> Option<Ordering> {
Some(term_cmp(self, other))
}
}
impl Ord for dyn TTerm {
fn cmp(&self, other: &dyn TTerm) -> Ordering {
term_cmp(self, other)
}
}
impl Hash for dyn TTerm {
fn hash<H: Hasher>(&self, state: &mut H) {
term_hash(self, state)
}
}
impl Display for dyn TTerm {
fn fmt(&self, fmt: &mut Formatter) -> FmtResult {
term_format(self, fmt)
}
}