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

pub fn while_let_pop()

Basic usage:

fn while_let_pop() {
    let mut v = vec![1,2,3,4,5];
    while let Some(x) = v.pop() {
        println!("{}", x);
    }
}
while_let_pop();Run