Trait datafrost::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Mutability for Const

§

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

source§

impl Mutability for Mut

§

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