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

Method indented

src/ore/src/str.rs:300–308  ·  view source on GitHub ↗
(&mut self, mut f: F)

Source from the content-addressed store, hash-verified

298
299impl<T: AsMut<Indent>> IndentLike for T {
300 fn indented<F>(&mut self, mut f: F) -> fmt::Result
301 where
302 F: FnMut(&mut Self) -> fmt::Result,
303 {
304 *self.as_mut() += 1;
305 let result = f(self);
306 *self.as_mut() -= 1;
307 result
308 }
309
310 fn indented_if<F>(&mut self, guard: bool, mut f: F) -> fmt::Result
311 where

Callers 8

fmt_default_textMethod · 0.80
fmt_verbose_textMethod · 0.80
fmt_textMethod · 0.80
fmt_textMethod · 0.80
fmt_verbose_syntaxMethod · 0.80
fmt_text_constant_rowsFunction · 0.80
fmt_virtual_syntaxMethod · 0.80
fmt_raw_syntaxMethod · 0.80

Calls 1

as_mutMethod · 0.45

Tested by

no test coverage detected