MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / new

Method new

crates/codegen/src/code_indenter.rs:20–27  ·  view source on GitHub ↗
(writer: W, indent: &'static str)

Source from the content-addressed store, hash-verified

18}
19impl<W: fmt::Write> CodeIndenter<W> {
20 pub fn new(writer: W, indent: &'static str) -> Self {
21 CodeIndenter {
22 writer,
23 level: 0,
24 needs_indenting: true,
25 indent,
26 }
27 }
28 // pub fn get_ref(&self) -> &W {
29 // &self.writer
30 // }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected