pub struct NoopProj<T: ?Sized>(PhantomData<T>);Tuple Fields§
§0: PhantomData<T>Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for NoopProj<T>where
T: ?Sized,
impl<T> RefUnwindSafe for NoopProj<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for NoopProj<T>
impl<T> Sync for NoopProj<T>
impl<T> Unpin for NoopProj<T>
impl<T> UnsafeUnpin for NoopProj<T>where
T: ?Sized,
impl<T> UnwindSafe for NoopProj<T>where
T: UnwindSafe + ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P> ProjectionExt for Pwhere
P: Projection + ?Sized,
impl<P> ProjectionExt for Pwhere
P: Projection + ?Sized,
Source§unsafe fn borrow<'a, X, Y>(&self, ptr: *const X) -> Ywhere
X: HasPlace<Target = Self::Source> + PlaceBorrow<'a, Self, Y>,
Y: HasPlace<Target = Self::Target>,
unsafe fn borrow<'a, X, Y>(&self, ptr: *const X) -> Ywhere
X: HasPlace<Target = Self::Source> + PlaceBorrow<'a, Self, Y>,
Y: HasPlace<Target = Self::Target>,
Convenience method that simply calls the corresponding PlaceBorrow
method.
Source§unsafe fn read<X>(&self, ptr: *const X) -> Self::Target
unsafe fn read<X>(&self, ptr: *const X) -> Self::Target
Convenience method that simply calls the corresponding PlaceRead method.
Source§unsafe fn write<X>(&self, ptr: *mut X, val: Self::Target)
unsafe fn write<X>(&self, ptr: *mut X, val: Self::Target)
Convenience method that simply calls the corresponding PlaceRead method.
Source§unsafe fn deref<X>(&self, ptr: *mut X) -> *const Self::Target
unsafe fn deref<X>(&self, ptr: *mut X) -> *const Self::Target
Convenience method that simply calls the corresponding PlaceDeref
method.
Source§fn as_sized(&self) -> SizedProj<Self::Source, Self::Target>
fn as_sized(&self) -> SizedProj<Self::Source, Self::Target>
When the target is sized, we know a projection is just an offset so we
can make it sized even if we had a
dyn Projection. Read more