Closed IvanPleshkov closed 6 months ago
Exchange arguments impl Iterator<Item = &'a [f32]> into impl Iterator<Item = impl AsRef<[f32]> + 'a>. It allows to use non-slice types for encoder. Like Vec<f32> or Cow<'a, [f32]>
impl Iterator<Item = &'a [f32]>
impl Iterator<Item = impl AsRef<[f32]> + 'a>
Vec<f32>
Cow<'a, [f32]>
Exchange arguments
impl Iterator<Item = &'a [f32]>
intoimpl Iterator<Item = impl AsRef<[f32]> + 'a>
. It allows to use non-slice types for encoder. LikeVec<f32>
orCow<'a, [f32]>