fn pick_transform<'a>(&'a self) -> Box<dyn Fn(Point) -> Point + 'a> {
        let dist = WeightedIndex::new(&self.weights).unwrap();
        let mut rng = rand::thread_rng();
        let chosen_index = dist.sample(&mut rng);
        // box up and return a closure to do the call
        Box::new(move |p| self.transforms[chosen_index].transform(p))
    }
/// Internal helper for ChaosGameThreadedGenerator.
///
/// The lifetime is needed here to satisfy the compiler's use of the box elsewhere.
Internal helper for ChaosGameThreadedGenerator.
The lifetime is needed here to satisfy the compiler's use of the box elsewhere.
Internal helper for ChaosGameThreadedGenerator . The lifetime is needed here to satisfy the compiler ' s use of the box elsewhere .
fn pick_transform<'a>(&'a self) -> Box<dyn Fn(Point) -> Point + 'a> {
        let dist = WeightedIndex::new(&self.weights).unwrap();
        let mut rng = rand::thread_rng();
        let chosen_index = dist.sample(&mut rng);
        // box up and return a closure to do the call
        Box::new(move |p| self.transforms[chosen_index].transform(p))
    }
fn pick_transform < ' a > ( & ' a self ) -> Box < dyn Fn ( Point ) -> Point + ' a > { let dist = WeightedIndex :: new ( & self . weights ) . unwrap ( ) ; let mut rng = rand :: thread_rng ( ) ; let chosen_index = dist . sample ( & mut rng ) ; // box up and return a closure to do the call Box :: new ( move | p | self . transforms [ chosen_index ] . transform ( p ) ) }
Internal helper for ChaosGameThreadedGenerator.
Internal helper for ChaosGameThreadedGenerator .
&'a self