Skip to main content

IntoRefMut

Trait IntoRefMut 

Source
pub trait IntoRefMut<'a>: IntoRef<'a> {
    // Required method
    fn into_ref_mut(self) -> &'a mut Self::Out;
}
Expand description

Consume self into mutable reference

Required Methods§

Source

fn into_ref_mut(self) -> &'a mut Self::Out

Consume self into mutable reference

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, P> IntoRefMut<'a> for Pin<P>
where P: Deref + IntoRefMut<'a>, P::Target: Unpin,

Source§

fn into_ref_mut(self) -> &'a mut Self::Out

Source§

impl<'a, T: ?Sized> IntoRefMut<'a> for &'a mut T

Source§

fn into_ref_mut(self) -> &'a mut Self::Out

Implementors§