pub trait Mutability: MutabilityInner {
type Ref<'a, T: 'a + ?Sized>: Deref<Target = T>;
type Select<I, M>;
// Required method
fn select<I, M>(immut: I, mutable: M) -> Self::Select<I, M>;
}Expand description
Marks whether a type is mutable or immutable.
Required Associated Types§
Required 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.