#[repr(C)]pub struct RelRef<'a, T, R, B = DefaultBasis>where
T: BasisPointee<B> + ?Sized,
R: Region,
B: Basis,{ /* private fields */ }
Expand description
A reference stored using a relative pointer.
Implementations
Trait Implementations
sourceimpl<'a, T, R, B> DebugRaw for RelRef<'a, T, R, B>where
T: BasisPointee<B> + DebugRaw + ?Sized,
R: Region,
B: Basis,
impl<'a, T, R, B> DebugRaw for RelRef<'a, T, R, B>where
T: BasisPointee<B> + DebugRaw + ?Sized,
R: Region,
B: Basis,
sourceimpl<'a, T, R, B> DisplayRaw for RelRef<'a, T, R, B>where
T: BasisPointee<B> + DisplayRaw + ?Sized,
R: Region,
B: Basis,
impl<'a, T, R, B> DisplayRaw for RelRef<'a, T, R, B>where
T: BasisPointee<B> + DisplayRaw + ?Sized,
R: Region,
B: Basis,
sourceimpl<'a, T, R, B> DropRaw for RelRef<'a, T, R, B>where
T: BasisPointee<B> + ?Sized,
R: Region,
B: Basis,
RelPtr<T, R, B>: DropRaw,
PhantomData<&'a T>: DropRaw,
impl<'a, T, R, B> DropRaw for RelRef<'a, T, R, B>where
T: BasisPointee<B> + ?Sized,
R: Region,
B: Basis,
RelPtr<T, R, B>: DropRaw,
PhantomData<&'a T>: DropRaw,
sourceimpl<'a, T, R, B> Emplace<RelRef<'a, T, R, B>, R> for In<Ref<'a, T>, R>where
T: BasisPointee<B> + ?Sized,
R: Region,
B: Basis,
impl<'a, T, R, B> Emplace<RelRef<'a, T, R, B>, R> for In<Ref<'a, T>, R>where
T: BasisPointee<B> + ?Sized,
R: Region,
B: Basis,
sourceimpl<'a, T, R, B, __R: Region> Move<__R> for RelRef<'a, T, R, B>where
T: BasisPointee<B> + ?Sized,
R: Region,
B: Basis,
Self: DropRaw,
RelPtr<T, R, B>: Move<__R>,
PhantomData<&'a T>: Move<__R>,
impl<'a, T, R, B, __R: Region> Move<__R> for RelRef<'a, T, R, B>where
T: BasisPointee<B> + ?Sized,
R: Region,
B: Basis,
Self: DropRaw,
RelPtr<T, R, B>: Move<__R>,
PhantomData<&'a T>: Move<__R>,
impl<'a, T, R, B> Portable for RelRef<'a, T, R, B>where
T: BasisPointee<B> + ?Sized,
R: Region,
B: Basis,
RelPtr<T, R, B>: Portable,
PhantomData<&'a T>: Portable,
Auto Trait Implementations
impl<'a, T: ?Sized, R, B> RefUnwindSafe for RelRef<'a, T, R, B>where
R: RefUnwindSafe,
T: RefUnwindSafe,
<T as BasisPointee<B>>::BasisMetadata: RefUnwindSafe,
<B as Basis>::Isize: RefUnwindSafe,
impl<'a, T, R, B = DefaultBasis> !Send for RelRef<'a, T, R, B>
impl<'a, T, R, B = DefaultBasis> !Sync for RelRef<'a, T, R, B>
impl<'a, T, R, B = DefaultBasis> !Unpin for RelRef<'a, T, R, B>
impl<'a, T: ?Sized, R, B> UnwindSafe for RelRef<'a, T, R, B>where
R: UnwindSafe,
T: RefUnwindSafe,
<T as BasisPointee<B>>::BasisMetadata: UnwindSafe,
<B as Basis>::Isize: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more