MCPcopy Create free account
hub / github.com/cosdata/cosdata / fmt

Method fmt

src/metadata/mod.rs:32–41  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

30
31impl 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected