/// print nice for fold vector debug
print nice for fold vector debug
print nice for fold vector debug
pub fn print_vec(vec_of_fold: Vec<Fold>, code_text: &str) -> String {
    let mut ret_str = String::new();
    for fold in vec_of_fold {
        ret_str.push_str(&format!(
            "{:5} {:5} :  {:14}   {:20}\n",
            usize::from(fold.range.start()),
            usize::from(fold.range.end()),
            get_str_to_end_of_line(code_text, fold.range.start().into()).trim(),
            get_str_to_end_of_line(code_text, fold.range.end().into()).trim(),
        ));
    }
    //return
    ret_str
}
pub fn print_vec ( vec_of_fold : Vec < Fold > , code_text : & str ) -> String { let mut ret_str = String :: new ( ) ; for fold in vec_of_fold { ret_str . push_str ( & format ! ( " \n " usize from ( fold range start ( ) ) usize from ( fold range end ( ) ) get_str_to_end_of_line ( code_text fold range start ( ) into ( ) ) trim ( ) get_str_to_end_of_line ( code_text fold range end ( ) into ( ) ) trim ( ) ) ) ; } //return ret_str }
print nice for fold vector debug
print nice for fold vector debug
vec_of_fold
Vec<Fold>
code_text
&str