Trait frunk::traits::ToMut

source ·
pub trait ToMut<'a> {
    type Output;

    // Required method
    fn to_mut(&'a mut self) -> Self::Output;
}
Expand description

An alternative to AsMut that does not force the reference type to be a pointer itself.

This parallels ToRef; see it for more information.

Required Associated Types§

Required Methods§

source

fn to_mut(&'a mut self) -> Self::Output

Implementors§

source§

impl<'a> ToMut<'a> for CNil

§

type Output = CNil

source§

impl<'a> ToMut<'a> for HNil

§

type Output = HNil

source§

impl<'a, CH, CTail> ToMut<'a> for Coproduct<CH, CTail>where CH: 'a, CTail: ToMut<'a>,

§

type Output = Coproduct<&'a mut CH, <CTail as ToMut<'a>>::Output>

source§

impl<'a, H, Tail> ToMut<'a> for HCons<H, Tail>where H: 'a, Tail: ToMut<'a>,

§

type Output = HCons<&'a mut H, <Tail as ToMut<'a>>::Output>