Structs§
- GenSeparated
Values Options - GenSeparated
Values Result - Generated
Value - Lines
Span - Multi
Line Options - Single
Line Options
Enums§
Functions§
- gen_
from_ raw_ string - Generates IR from a string as is and ignores its indent.
- gen_
from_ raw_ string_ trim_ line_ ends - Generates IR from a string trimming the end of each line and ignores its indent.
- gen_
from_ string - Generates IR from a string to a series of PrintItems.
- gen_
from_ string_ trim_ line_ ends - Generates IR from a string to a series of PrintItems trimming the end of each line for whitespace.
- gen_
js_ like_ comment_ block - Generates IR from the provided text to a JS-like comment block (ex.
/** some text */
) - gen_
js_ like_ comment_ line - Generates IR from the provided text to a JS-like comment line (ex.
// some text
) - gen_
separated_ values - new_
line_ group - surround_
with_ new_ lines - surround_
with_ newlines_ indented_ if_ multi_ line - Surrounds the items with newlines and indentation if its on multiple lines. Note: This currently inserts a possible newline at the start, but that might change or be made conditional in the future.
- text_
has_ dprint_ ignore - Gets if the provided text has the provided searching text in it (ex. “dprint-ignore”).
- with_
indent - with_
indent_ times - with_
no_ new_ lines - with_
queued_ indent