reborrow

Trait 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 T
where T: ?Sized,

Source§

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

Source§

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

Implementors§