MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / indent

Method indent

cranelift/srcgen/src/lib.rs:117–122  ·  view source on GitHub ↗

Increase indentation level for the duration of `f`.

(&mut self, f: F)

Source from the content-addressed store, hash-verified

115
116 /// Increase indentation level for the duration of `f`.
117 pub fn indent<T, F: FnOnce(&mut Formatter) -> T>(&mut self, f: F) -> T {
118 self.indent_push();
119 let ret = f(self);
120 self.indent_pop();
121 ret
122 }
123
124 /// Get the current whitespace indentation in the form of a String.
125 fn get_indent(&self) -> String {

Callers 13

add_blockMethod · 0.45
add_matchMethod · 0.45
gen_common_isleFunction · 0.45
gen_isle_enumFunction · 0.45
gen_numerics_isleFunction · 0.45
gen_enum_allFunction · 0.45
gen_descriptorsFunction · 0.45
generate_rust_macroFunction · 0.45
generate_isle_inst_declsFunction · 0.45
gen_opcodesFunction · 0.45
gen_typesets_tableFunction · 0.45
gen_type_constraintsFunction · 0.45

Calls 3

indent_pushMethod · 0.80
indent_popMethod · 0.80
fFunction · 0.50

Tested by

no test coverage detected