(&self, f: &mut fmt::Formatter)
| 30 | |
| 31 | impl fmt::Display for Error { |
| 32 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 33 | match self { |
| 34 | Self::InvalidField(msg) => write!(f, "Invalid field: {msg}"), |
| 35 | Self::InvalidFieldCardinality(msg) => write!(f, "Invalid field cardinality: {msg}"), |
| 36 | Self::InvalidFieldValue(msg) => write!(f, "Invalid field value: {msg}"), |
| 37 | Self::InvalidFieldValues(msg) => write!(f, "Invalid field values: {msg}"), |
| 38 | Self::InvalidMetadataSchema => write!(f, "Invalid metadata schema"), |
| 39 | Self::UnsupportedFilter(msg) => write!(f, "Unsupported filter: {msg}"), |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | /// Returns power of 2 that's nearest to the number, rounded up |
nothing calls this directly
no outgoing calls
no test coverage detected