Mutability

Trait Mutability 

Source
pub trait Mutability: MutabilityInner {
    type Ref<'a, T: 'a + ?Sized>: Deref<Target = T>;
}
Expand description

Marks whether a type is mutable or immutable.

Required Associated Types§

Source

type Ref<'a, T: 'a + ?Sized>: Deref<Target = T>

The reference type associated with this mutability.

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.

Implementors§

Source§

impl Mutability for Const

Source§

type Ref<'a, T: 'a + ?Sized> = &'a T

Source§

impl Mutability for Mut

Source§

type Ref<'a, T: 'a + ?Sized> = &'a mut T