rustmax::rustyline::completion

Function longest_common_prefix

Source
pub fn longest_common_prefix<C>(candidates: &[C]) -> Option<&str>
where C: Candidate,
Expand description

Returns the longest common prefix among all Candidate::replacement()s.