Function assign_to_rle
Source pub fn assign_to_rle(assign_vec: Vec<u16>) -> Vec<(u16, u16)>
Expand description
Convert a vector of assignments to a run-length encoded (RLE) vector.
§Arguments
assign_vec
- A vector of assignments to convert to RLE.
§Returns
A vector of tuples where the first element is the value and the second element is
the length of the run.