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

Method expr

src/expr/src/explain/text.rs:1119–1129  ·  view source on GitHub ↗

Factory method that wraps the given `expr` and `cols` into a [`HumanizedExpr`] with the current `mode`.

(
        &self,
        expr: &'a T,
        cols: Option<&'a Vec<String>>,
    )

Source from the content-addressed store, hash-verified

1117 /// Factory method that wraps the given `expr` and `cols` into a
1118 /// [`HumanizedExpr`] with the current `mode`.
1119 fn expr<'a, T>(
1120 &self,
1121 expr: &'a T,
1122 cols: Option<&'a Vec<String>>,
1123 ) -> HumanizedExpr<'a, T, Self> {
1124 HumanizedExpr {
1125 expr,
1126 cols,
1127 mode: self.clone(),
1128 }
1129 }
1130
1131 /// Return `true` iff literal redaction is enabled for this mode.
1132 fn redacted(&self) -> bool;

Callers 6

fmt_textMethod · 0.45
fmt_verbose_syntaxMethod · 0.45
fmt_indexed_filterMethod · 0.45
formatMethod · 0.45
seqMethod · 0.45
write_first_rowsFunction · 0.45

Implementers 1

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

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected