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