cp_
library_
rs
0.3.19
run_
length_
encode
Sections
ランレングス圧縮
In cp_
library_
rs::
utils::
run_
length
cp_library_rs
::
utils
::
run_length
Function
run_length_encode
Copy item path
Source
pub fn run_length_encode<T>(arr: &
[T]
) ->
Vec
<(T,
usize
)>
where T:
PartialEq
+
Copy
,
Expand description
§
ランレングス圧縮
スライスからエンコードを行う