Trait serde::lib::core::pin::PinCoerceUnsized

source ยท
pub unsafe trait PinCoerceUnsized { }
๐Ÿ”ฌThis is a nightly-only experimental API. (pin_coerce_unsized_trait)
Expand description

Trait that indicates that this is a pointer or a wrapper for one, where unsizing can be performed on the pointee when it is pinned.

ยงSafety

If this type implements Deref, then the concrete type returned by deref and deref_mut must not change without a modification. The following operations are not considered modifications:

  • Moving the pointer.
  • Performing unsizing coercions on the pointer.
  • Performing dynamic dispatch with the pointer.
  • Calling deref or deref_mut on the pointer.

The concrete type of a trait object is the type that the vtable corresponds to. The concrete type of a slice is an array of the same element type and the length specified in the metadata. The concrete type of a sized type is the type itself.

Implementorsยง

1.33.0 ยท sourceยง

impl<'a, T> PinCoerceUnsized for &'a T
where T: ?Sized,

1.33.0 ยท sourceยง

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

sourceยง

impl<'b, T> PinCoerceUnsized for Ref<'b, T>
where T: ?Sized,

sourceยง

impl<'b, T> PinCoerceUnsized for RefMut<'b, T>
where T: ?Sized,

1.33.0 ยท sourceยง

impl<T> PinCoerceUnsized for *const T
where T: ?Sized,

1.33.0 ยท sourceยง

impl<T> PinCoerceUnsized for *mut T
where T: ?Sized,

1.33.0 ยท sourceยง

impl<T> PinCoerceUnsized for NonNull<T>
where T: ?Sized,

sourceยง

impl<T> PinCoerceUnsized for Cell<T>
where T: ?Sized,

sourceยง

impl<T> PinCoerceUnsized for RefCell<T>
where T: ?Sized,

sourceยง

impl<T> PinCoerceUnsized for SyncUnsafeCell<T>
where T: ?Sized,

sourceยง

impl<T> PinCoerceUnsized for UnsafeCell<T>
where T: ?Sized,

sourceยง

impl<T> PinCoerceUnsized for UniqueRc<T>
where T: ?Sized,

1.33.0 ยท sourceยง

impl<T> PinCoerceUnsized for Pin<T>

sourceยง

impl<T, A> PinCoerceUnsized for Arc<T, A>
where A: Allocator, T: ?Sized,

sourceยง

impl<T, A> PinCoerceUnsized for serde::lib::ArcWeak<T, A>
where A: Allocator, T: ?Sized,

sourceยง

impl<T, A> PinCoerceUnsized for Box<T, A>
where A: Allocator, T: ?Sized,

sourceยง

impl<T, A> PinCoerceUnsized for Rc<T, A>
where A: Allocator, T: ?Sized,

sourceยง

impl<T, A> PinCoerceUnsized for serde::lib::RcWeak<T, A>
where A: Allocator, T: ?Sized,