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

Method write_str

src/sql-parser/src/ast/display.rs:104–106  ·  view source on GitHub ↗

TODO(justin): make this only accept a &str so that we don't accidentally pass an AstDisplay to it.

(&mut self, s: T)

Source from the content-addressed store, hash-verified

102 // TODO(justin): make this only accept a &str so that we don't accidentally pass an AstDisplay
103 // to it.
104 pub fn write_str<T: fmt::Display>(&mut self, s: T) {
105 write!(self.buf, "{}", s).expect("unexpected error in fmt::Display implementation");
106 }
107
108 // Whether the AST should be optimized for persistence.
109 pub fn stable(&self) -> bool {

Callers 15

fmtMethod · 0.45
fmtMethod · 0.45
fmtMethod · 0.45
renderMethod · 0.45
fmtMethod · 0.45
fmtMethod · 0.45
fmtMethod · 0.45
fmtMethod · 0.45
format_pg_legacy_charFunction · 0.45
fmtMethod · 0.45
fmtMethod · 0.45
fmtMethod · 0.45

Calls 1

expectMethod · 0.80

Tested by

no test coverage detected