pub struct ComposeProj<P: ?Sized, Q> {
q: Q,
p: P,
}Expand description
Projection P followed by Q. P may be unsized.
Fields§
§q: Q§p: PTrait Implementations§
Source§impl<P: Clone + ?Sized, Q: Clone> Clone for ComposeProj<P, Q>
impl<P: Clone + ?Sized, Q: Clone> Clone for ComposeProj<P, Q>
Source§fn clone(&self) -> ComposeProj<P, Q>
fn clone(&self) -> ComposeProj<P, Q>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P, Q> Projection for ComposeProj<P, Q>
impl<P, Q> Projection for ComposeProj<P, Q>
Auto Trait Implementations§
impl<P, Q> Freeze for ComposeProj<P, Q>
impl<P, Q> RefUnwindSafe for ComposeProj<P, Q>
impl<P, Q> Send for ComposeProj<P, Q>
impl<P, Q> Sync for ComposeProj<P, Q>
impl<P, Q> Unpin for ComposeProj<P, Q>
impl<P, Q> UnsafeUnpin for ComposeProj<P, Q>
impl<P, Q> UnwindSafe for ComposeProj<P, Q>
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