MCPcopy Create free account
hub / github.com/aspizu/goboscript / write_comma_io

Function write_comma_io

src/misc.rs:6–13  ·  view source on GitHub ↗
(mut file: T, comma: &mut bool)

Source from the content-addressed store, hash-verified

4use arcstr::ArcStr;
5
6pub fn write_comma_io<T>(mut file: T, comma: &mut bool) -> io::Result<()>
7where T: io::Write {
8 if *comma {
9 file.write_all(b",")?;
10 }
11 *comma = true;
12 Ok(())
13}
14
15pub fn write_comma_fmt<T>(mut file: T, comma: &mut bool) -> fmt::Result
16where T: fmt::Write {

Callers 10

blockMethod · 0.85
_inputMethod · 0.85
begin_nodeMethod · 0.85
substackMethod · 0.85
spriteMethod · 0.85
json_var_declarationMethod · 0.85
list_declarationMethod · 0.85
procMethod · 0.85
funcMethod · 0.85
reprMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected