pub trait IndexMut {
type IndexMut<'a>
where Self: 'a;
// Required method
fn get_mut(&mut self, index: usize) -> Self::IndexMut<'_>;
// Provided method
fn last_mut(&mut self) -> Option<Self::IndexMut<'_>>
where Self: Len { ... }
}
Expand description
A type that can be mutably accessed by usize
.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.