Method
write_or_expand
(&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 | |
| 44 | impl<T: WriteSource> WriteSource for &T { |
Implementers 3
mod.rsprqlc/prqlc/src/codegen/mod.rs types.rsprqlc/prqlc/src/codegen/types.rs ast.rsprqlc/prqlc/src/codegen/ast.rs
Tested by
no test coverage detected