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