lockOneShotIndent
Turns all one-shot indents into regular indents Returns number of indents that must now be manually popped
Function parameters
Parameters
- ais:*AutoIndentingStream
Type definitions in this namespace
Types
Functions in this namespace
Functions
Error sets in this namespace
Error Sets
Source
Implementation
pub fn lockOneShotIndent(ais: *AutoIndentingStream) usize {
const locked_count = ais.indent_one_shot_count;
ais.indent_one_shot_count = 0;
return locked_count;
}