Protocol std::mem::AsSliceMut
Types that can be viewed as mutable slices
Types that implement this protocol can be indexed as if they were slices.
Example
use std::collections::Vector;
let v: Vector<i32> = Vector::new();
v.push(1);
v.push(2);
v.push(3);
v[2] = 4;
assert_eq!(v.pop(), Option::some(4));
Run this example
Required methods
-
fn as_slice_mut(self: &mut Self) -> &mut [T]