Method
equals
(&self, other: &Box<dyn Value>)
Source from the content-addressed store, hash-verified
| 38 | } |
| 39 | |
| 40 | fn equals(&self, other: &Box<dyn Value>) -> bool { |
| 41 | if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() { |
| 42 | return self.value == other_text.value; |
| 43 | } |
| 44 | false |
| 45 | } |
| 46 | |
| 47 | fn compare(&self, other: &Box<dyn Value>) -> Option<Ordering> { |
| 48 | if let Some(other_text) = other.as_any().downcast_ref::<TextValue>() { |
Callers
nothing calls this directly
Tested by
no test coverage detected