pub struct Ref<I>(PhantomData<I>);
Expand description
Type-based tag for reference types (&'a T
, where T is represented by
<I as MaybeSizedType<'a>>::Reified
.
Tuple Fields§
§0: PhantomData<I>
Trait Implementations§
source§impl<'a, I: MaybeSizedType<'a>> Type<'a> for Ref<I>
impl<'a, I: MaybeSizedType<'a>> Type<'a> for Ref<I>
§type Reified = &'a <I as MaybeSizedType<'a>>::Reified
type Reified = &'a <I as MaybeSizedType<'a>>::Reified
The type of values which may be tagged by this tag for the given
lifetime.
Auto Trait Implementations§
impl<I> Freeze for Ref<I>
impl<I> RefUnwindSafe for Ref<I>where I: RefUnwindSafe,
impl<I> Send for Ref<I>where I: Send,
impl<I> Sync for Ref<I>where I: Sync,
impl<I> Unpin for Ref<I>where I: Unpin,
impl<I> UnwindSafe for Ref<I>where I: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more