Trait reborrow::IntoConst

source ·
pub trait IntoConst {
    type Target;

    // Required method
    fn into_const(self) -> Self::Target;
}
Expand description

Consume a mutable reference to produce an immutable one.

Required Associated Types§

Required Methods§

source

fn into_const(self) -> Self::Target

Implementations on Foreign Types§

source§

impl<'a, T> IntoConst for &'a Twhere T: ?Sized,

§

type Target = &'a T

source§

fn into_const(self) -> Self::Target

source§

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

§

type Target = &'a T

source§

fn into_const(self) -> Self::Target

source§

impl<T> IntoConst for Option<T>where T: IntoConst,

§

type Target = Option<<T as IntoConst>::Target>

source§

fn into_const(self) -> Self::Target

Implementors§