Generates all rotations of a string. # Arguments `s` - The string to rotate # Returns A vector containing all rotations of the input string # Examples ``` # use the_algorithms_rust::compression::all_rotations; let rotations = all_rotations("^BANANA|"); assert_eq!(rotations.len(), 8); assert_eq!(rotations[0], "^BANANA|"); assert_eq!(rotations[1], "BANANA|^"); ```
(s: &str)
source not stored for this graph (policy: none)