MCPcopy Create free account
hub / github.com/PRQL/prql / write_or_expand

Method write_or_expand

prqlc/prqlc/src/codegen/mod.rs:32–41  ·  view source on GitHub ↗
(&self, mut opt: WriteOpt)

Source from the content-addressed store, hash-verified

30 }
31
32 fn write_or_expand(&self, mut opt: WriteOpt) -> String {
33 loop {
34 if let Some(s) = self.write(opt.clone()) {
35 return s;
36 } else {
37 opt.max_width += opt.max_width / 2;
38 opt.reset_line();
39 }
40 }
41 }
42}
43
44impl<T: WriteSource> WriteSource for &T {

Callers 1

writeMethod · 0.80

Implementers 3

mod.rsprqlc/prqlc/src/codegen/mod.rs
types.rsprqlc/prqlc/src/codegen/types.rs
ast.rsprqlc/prqlc/src/codegen/ast.rs

Calls 2

reset_lineMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected