Trait frunk_core::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

source§

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

source§

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

source§

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

source§

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