Reborrow

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

Source§

type Target = &'short T

Source§

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

Source§

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

Source§

type Target = &'short T

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§