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

Method child

src/expr/src/explain/text.rs:1084–1090  ·  view source on GitHub ↗

Wrap the given child `expr` into a [`HumanizedExpr`] using the same `cols` and `mode` as `self`.

(&self, expr: &'a U)

Source from the content-addressed store, hash-verified

1082 /// Wrap the given child `expr` into a [`HumanizedExpr`] using the same
1083 /// `cols` and `mode` as `self`.
1084 pub fn child<U>(&self, expr: &'a U) -> HumanizedExpr<'a, U, M> {
1085 HumanizedExpr {
1086 expr,
1087 cols: self.cols,
1088 mode: self.mode.clone(),
1089 }
1090 }
1091}
1092
1093/// A trait that abstracts the various ways in which we can humanize

Callers 6

fmt_textMethod · 0.80
fmtMethod · 0.80
fmt_textMethod · 0.80
fmt_default_textMethod · 0.80
humanizeMethod · 0.80
fmtMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected