pub fn rand_prefix(&self) -> Option<Prefix> {
    if self.0.is_empty() {
      None
    }

    else {
      let mut rng = thread_rng();
      match rand::sample(&mut rng, self.0.iter(), 1).iter().nth(0) {
        Some(p) => Some(p.0.clone()),
        None => None
      }
    }
  }
/// Gets a random Prefix from the dictionary.
Gets a random Prefix from the dictionary.
Gets a random Prefix from the dictionary .
pub fn rand_prefix(&self) -> Option<Prefix> {
    if self.0.is_empty() {
      None
    }
    else {
      let mut rng = thread_rng();
      match rand::sample(&mut rng, self.0.iter(), 1).iter().nth(0) {
        Some(p) => Some(p.0.clone()),
        None => None
      }
    }
  }
pub fn rand_prefix ( & self ) -> Option < Prefix > { if self . 0 . is_empty ( ) { None } else { let mut rng = thread_rng ( ) ; match rand :: sample ( & mut rng , self . 0 . iter ( ) , 1 ) . iter ( ) . nth ( 0 ) { Some ( p ) => Some ( p . 0 . clone ( ) ) , None => None } } }
Gets a random Prefix from the dictionary.
Gets a random Prefix from the dictionary .
&self