Function anagram::get_next [−][src]
pub fn get_next(word: &str) -> String
Get the next lexicographically greater permutation This function will return either the next greater permutation or the lexicographically smallest permutation if the given word is the lexicographically greatest permutation Examples: “abc” -> “acb” “cba” -> “abc”