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