Method
equals
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 25 | } |
| 26 | |
| 27 | fn equals(&self, other: &Box<dyn Value>) -> bool { |
| 28 | if let Some(other_date) = other.as_any().downcast_ref::<IntervalValue>() { |
| 29 | return self.interval == other_date.interval; |
| 30 | } |
| 31 | false |
| 32 | } |
| 33 | |
| 34 | fn compare(&self, other: &Box<dyn Value>) -> Option<Ordering> { |
| 35 | if let Some(other_interval) = other.as_any().downcast_ref::<IntervalValue>() { |
Callers
nothing calls this directly
Tested by
no test coverage detected