(&self, f: &mut Formatter)
| 294 | |
| 295 | impl Display for DataValueCastFailure { |
| 296 | fn fmt(&self, f: &mut Formatter) -> fmt::Result { |
| 297 | match self { |
| 298 | DataValueCastFailure::TryInto(from, to) => { |
| 299 | write!(f, "unable to cast data value of type {from} to type {to}") |
| 300 | } |
| 301 | DataValueCastFailure::FromInteger(val, to) => { |
| 302 | write!(f, "unable to cast i64({val}) to a data value of type {to}") |
| 303 | } |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | |
| 308 | /// Helper for creating conversion implementations for [DataValue]. |
nothing calls this directly
no test coverage detected