pub fn rotate(
layout: &Layout,
axis: usize,
counts: Option<(&[usize], &[i64])>,
) -> Result<Plan, Error>Expand description
Rotates the items along axis, or reverses them when counts is None. counts gives the counts’ shape and items: one count for every lane, or one for each lane in the shape of layout without axis. A lane starts at position count of the axis, counted modulo its length. Keys on the axis move with their items when every lane rotates alike, and are dropped otherwise.