pub fn myprettyfailure_option(option: MyPrettyFailurePrint, fail: &Fail) -> String {
    let mut count_context = 0;
    let mut _indent = " ".to_string();
    let mut message: String = option.head;
    message.push_str("\n");
    message.push_str(&option.separator);
    message.push_str("\n");
    message.push_str(&fail.to_string());
    // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string struct "Error<Xxxxx>" ? (is possible ?)
    // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string enum "Error<Xxxxx>Kind" ? (is possible ?)
    message.push_str("\n");
    message.push_str(&option.separator);
    for cause in fail.iter_causes() {
        message.push_str("\n");
        message.push_str(&_indent); _indent.push_str(&" ".to_string());
        message.push_str("▶ ");
        // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string struct "Error<Xxxxx>" ? (if exist ?, is possible ?)
        // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string enum "Error<Xxxxx>Kind" ? (if not exist ?, is possible ?)
        message.push_str(&option.causedby);
        message.push_str(": ");
        message.push_str(&cause.to_string());
        count_context = count_context + 1;
    }
    if count_context != 0 {
      message.push_str("\n");
      message.push_str(&option.separator);
    }
    message
}
// -------------------------------------------------------------------
// print pretty failure message with your options
// -------------------------------------------------------------------
/// display [failure](https://github.com/rust-lang-nursery/failure) (and context) with *your* options in an elegant way
// -------------------------------------------------------------------
print pretty failure message with your options
display [failure] (and context) with *your* options in an elegant way
print pretty failure message with your options display [ failure ] ( and context ) with * your * options in an elegant way
pub fn myprettyfailure_option(option: MyPrettyFailurePrint, fail: &Fail) -> String {
    let mut count_context = 0;
    let mut _indent = " ".to_string();
    let mut message: String = option.head;
    message.push_str("\n");
    message.push_str(&option.separator);
    message.push_str("\n");
    message.push_str(&fail.to_string());
    // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string struct "Error<Xxxxx>" ? (is possible ?)
    // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string enum "Error<Xxxxx>Kind" ? (is possible ?)
    message.push_str("\n");
    message.push_str(&option.separator);
    for cause in fail.iter_causes() {
        message.push_str("\n");
        message.push_str(&_indent); _indent.push_str(&" ".to_string());
        message.push_str("▶ ");
        // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string struct "Error<Xxxxx>" ? (if exist ?, is possible ?)
        // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string enum "Error<Xxxxx>Kind" ? (if not exist ?, is possible ?)
        message.push_str(&option.causedby);
        message.push_str(": ");
        message.push_str(&cause.to_string());
        count_context = count_context + 1;
    }
    if count_context != 0 {
      message.push_str("\n");
      message.push_str(&option.separator);
    }
    message
}
pub fn myprettyfailure_option ( option : MyPrettyFailurePrint , fail : & Fail ) -> String { let mut count_context = 0 ; let mut _indent = " " . to_string ( ) ; let mut message : String = option . head ; message . push_str ( " \n " ) ; message . push_str ( & option . separator ) ; message . push_str ( " \n " ) ; message . push_str ( & fail . to_string ( ) ) ; // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string struct "Error<Xxxxx>" ? (is possible ?) // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string enum "Error<Xxxxx>Kind" ? (is possible ?) message . push_str ( " \n " ) ; message . push_str ( & option . separator ) ; for cause in fail . iter_causes ( ) { message . push_str ( " \n " ) ; message . push_str ( & _indent ) ; _indent . push_str ( & " " . to_string ( ) ) ; message . push_str ( " ; // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string struct "Error<Xxxxx>" ? (if exist ?, is possible ?) // message.push_str(format!("- {:?} - ", cause).as_str()); // <=== HOW DISPLAY string enum "Error<Xxxxx>Kind" ? (if not exist ?, is possible ?) message . push_str ( & option . causedby ) ; message . push_str ( " " ) ; message . push_str ( & cause . to_string ( ) ) ; count_context = count_context + 1 ; } if count_context != 0 { message . push_str ( " \n " ) ; message . push_str ( & option . separator ) ; } message }
print pretty failure message with your options
display [failure](https://github.com/rust-lang-nursery/failure) (and context) with *your* options in an elegant way
print pretty failure message with your options display [ failure ] ( https : // github . com / rust - lang - nursery / failure ) ( and context ) with * your * options in an elegant way
option
MyPrettyFailurePrint
fail
&Fail
option
MyPrettyFailurePrint
fail
&Fail