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