MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / humanize_datum

Method humanize_datum

src/expr/src/explain/text.rs:1141–1147  ·  view source on GitHub ↗

Render a literal datum. The default implementation prints a redacted symbol (█) if redaction is enabled.

(&self, datum: Datum<'_>, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

1139 /// The default implementation prints a redacted symbol (█) if redaction is
1140 /// enabled.
1141 fn humanize_datum(&self, datum: Datum<'_>, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1142 if self.redacted() {
1143 write!(f, "█")
1144 } else {
1145 write!(f, "{}", datum)
1146 }
1147 }
1148
1149 /// Wrap the given `exprs` (with `cols`) into [`HumanizedExpr`] with the current `mode`.
1150 fn seq<'i, T>(

Callers 2

humanizeMethod · 0.80
fmtMethod · 0.80

Implementers 1

text.rssrc/expr/src/explain/text.rs

Calls 1

redactedMethod · 0.45

Tested by

no test coverage detected