indent_all

Function indent_all 

Source
pub fn indent_all<S>(input: S) -> String
where S: Into<String>,
Expand description

This function can be used to indent all lines of a string by a tab size

ยงExample

use taco_display_utils::indent_all;

let input = "a\nb\nc";
assert_eq!(indent_all(input), "    a\n    b\n    c");