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

Method doc_display

src/sql-pretty/src/doc.rs:25–34  ·  view source on GitHub ↗

Use when we don't know what to do.

(&self, v: &T, _debug: &str)

Source from the content-addressed store, hash-verified

23impl Pretty {
24 // Use when we don't know what to do.
25 pub(crate) fn doc_display<'a, T: AstDisplay>(&self, v: &T, _debug: &str) -> RcDoc<'a, ()> {
26 #[cfg(test)]
27 eprintln!(
28 "UNKNOWN PRETTY TYPE in {}: {}, {}",
29 _debug,
30 std::any::type_name::<T>(),
31 v.to_ast_string_simple()
32 );
33 self.doc_display_pass(v)
34 }
35
36 // Use when the AstDisplay trait is what we want.
37 fn doc_display_pass<'a, T: AstDisplay>(&self, v: &T) -> RcDoc<'a, ()> {

Callers 7

to_docMethod · 0.80
doc_insertMethod · 0.80
doc_set_exprMethod · 0.80
doc_joinMethod · 0.80
doc_table_factorMethod · 0.80
doc_exprMethod · 0.80
doc_functionMethod · 0.80

Calls 1

doc_display_passMethod · 0.80

Tested by

no test coverage detected