Trait HasTempReprMut

Source
pub trait HasTempReprMut: HasTempRepr<Temp: TempReprMut> {
    type Mutable<'a>
       where Self: 'a;

    // Required methods
    fn mut_to_mapped(
        obj: Self::Mutable<'_>,
    ) -> <Self::Temp as TempReprMut>::Mutable<'_>;
    fn mapped_to_mut(
        mapped: <Self::Temp as TempReprMut>::Mutable<'_>,
    ) -> Self::Mutable<'_>;
}

Required Associated Types§

Source

type Mutable<'a> where Self: 'a

Required Methods§

Source

fn mut_to_mapped( obj: Self::Mutable<'_>, ) -> <Self::Temp as TempReprMut>::Mutable<'_>

Source

fn mapped_to_mut( mapped: <Self::Temp as TempReprMut>::Mutable<'_>, ) -> Self::Mutable<'_>

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.

Implementations on Foreign Types§

Source§

impl<T> HasTempReprMut for IterMut<'static, T>

Source§

type Mutable<'a> = IterMut<'a, T> where Self: 'a

Source§

fn mut_to_mapped( obj: Self::Mutable<'_>, ) -> <Self::Temp as TempReprMut>::Mutable<'_>

Source§

fn mapped_to_mut( mapped: <Self::Temp as TempReprMut>::Mutable<'_>, ) -> Self::Mutable<'_>

Implementors§

Source§

impl<T: IsAlwaysShared> HasTempReprMut for T

Source§

type Mutable<'a> = <T as HasTempRepr>::Shared<'a> where Self: 'a