Is `AsMut<[T]>` stable across repeated calls?

· Users Rust Lang · Oct. 26, 2026, 4:20 a.m.
Summary
This blog post discusses the behavior of the `AsMut<[T]>` trait in Rust, particularly focusing on whether repeated calls to `as_mut()` on an object return slices with consistent addresses and lengths. It raises concerns around implementing `AsMut` where its calls may not be pure views of the object's state, detailing examples that illustrate potential pitfalls when relying on such assumptions.
AUTHOR