[−][src]Function dasp_slice::from_frame_slice_mut
pub fn from_frame_slice_mut<'a, T, F>(slice: &'a mut [F]) -> T where
F: Frame,
T: FromFrameSliceMut<'a, F>,
Converts the given slice of mutable Frame
s into some mutable slice T
.
This is a convenience function that wraps the FromFrameSliceMut
trait.
Examples
fn main() { let foo = &mut [[0.0, 0.5], [0.0, -0.5]][..]; let bar: &mut [f32] = dasp_slice::from_frame_slice_mut(foo); assert_eq!(bar, &mut [0.0, 0.5, 0.0, -0.5][..]); }