pub fn rand_complete(&self, prefix: &Prefix) -> Option<&String> {
    if let Some(completions) = self.0.get(&prefix) {
      thread_rng().choose(&completions)
    }

    else {
      None
    }
  }
/// Get a random completion for a Prefix.
Get a random completion for a Prefix.
Get a random completion for a Prefix .
pub fn rand_complete(&self, prefix: &Prefix) -> Option<&String> {
    if let Some(completions) = self.0.get(&prefix) {
      thread_rng().choose(&completions)
    }
    else {
      None
    }
  }
pub fn rand_complete ( & self , prefix : & Prefix ) -> Option < & String > { if let Some ( completions ) = self . 0 . get ( & prefix ) { thread_rng ( ) . choose ( & completions ) } else { None } }
Get a random completion for a Prefix.
Get a random completion for a Prefix .
&self
prefix
&Prefix