[][src]Trait frunk::traits::ToMut

pub trait ToMut<'a> {
    type Output;
    fn to_mut(&'a mut self) -> Self::Output;
}

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

This parallels ToRef; see it for more information.

Associated Types

type Output

Loading content...

Required methods

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

Loading content...

Implementors

impl<'a> ToMut<'a> for CNil[src]

type Output = CNil

impl<'a> ToMut<'a> for HNil[src]

type Output = HNil

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

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

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

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

Loading content...