Trait reborrow::Reborrow

source ·
pub trait Reborrow<'short, _Outlives = &'short Self> {
    type Target;

    // Required method
    fn rb(&'short self) -> Self::Target;
}
Expand description

Immutable reborrowing.

Required Associated Types§

Required Methods§

source

fn rb(&'short self) -> Self::Target

Implementations on Foreign Types§

source§

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

§

type Target = &'short T

source§

fn rb(&'short self) -> Self::Target

source§

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

§

type Target = &'short T

source§

fn rb(&'short self) -> Self::Target

source§

impl<'short, T> Reborrow<'short> for Option<T>where T: Reborrow<'short>,

§

type Target = Option<<T as Reborrow<'short>>::Target>

source§

fn rb(&'short self) -> Self::Target

Implementors§