pub fn construct_turtle_window_handler<'a>(
    program: &'a dyn TurtleProgram,
    animate: u64,
) -> Box<dyn WindowHandler + 'a> {
    match animate {
        0 => Box::new(DoubleBufferedWindowHandler::new(program)),
        _ => Box::new(DoubleBufferedAnimatedWindowHandler::new(program, animate)),
    }
}
// The lifetimes are needed here to make the boxed window handlers happy.
The lifetimes are needed here to make the boxed window handlers happy.
The lifetimes are needed here to make the boxed window handlers happy .
pub fn construct_turtle_window_handler<'a>(
    program: &'a dyn TurtleProgram,
    animate: u64,
) -> Box<dyn WindowHandler + 'a> {
    match animate {
        0 => Box::new(DoubleBufferedWindowHandler::new(program)),
        _ => Box::new(DoubleBufferedAnimatedWindowHandler::new(program, animate)),
    }
}
pub fn construct_turtle_window_handler < ' a > ( program : & ' a dyn TurtleProgram , animate : u64 , ) -> Box < dyn WindowHandler + ' a > { match animate { 0 => Box :: new ( DoubleBufferedWindowHandler :: new ( program ) ) , _ => Box :: new ( DoubleBufferedAnimatedWindowHandler :: new ( program , animate ) ) , } }
The lifetimes are needed here to make the boxed window handlers happy.
The lifetimes are needed here to make the boxed window handlers happy .
program
&'a dyn TurtleProgram
animate
u64