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

pub fn loop_match_pop()

Basic usage:

fn loop_match_pop() {
    let mut v = vec![1,2,3,4,5];
    loop {
        match v.pop() {
            Some(x) => println!("{}", x),
            None => break,
        }
    }
}
loop_match_pop();Run