[][src]Function tao_of_rust::ch02::control_flow::if_let_bool

pub fn if_let_bool()

Basic usage:

fn if_let_bool() {
    let boolean = true;
    let mut binary = 0;
    if let true = boolean {
        binary = 1;
    }
    assert_eq!(binary, 1);
}
if_let_bool();Run