Struct PhantomPinned
struct PhantomPinned
A marker type which does not implement Unpin.
If a type contains a PhantomPinned, it will not implement Unpin by default.
Implementations
impl Clone for PhantomPinned
fn clone(self: &Self) -> PhantomPinned
impl Copy for PhantomPinned
impl Debug for PhantomPinned
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Default for PhantomPinned
fn default() -> PhantomPinned
impl Eq for PhantomPinned
impl Freeze for PhantomPinned
impl Hash for PhantomPinned
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl Ord for PhantomPinned
fn cmp(self: &Self, other: &PhantomPinned) -> $crate::cmp::Ordering
impl PartialEq for PhantomPinned
fn eq(self: &Self, other: &PhantomPinned) -> bool
impl PartialOrd for PhantomPinned
fn partial_cmp(self: &Self, other: &PhantomPinned) -> $crate::option::Option<$crate::cmp::Ordering>
impl RefUnwindSafe for PhantomPinned
impl Send for PhantomPinned
impl StructuralPartialEq for PhantomPinned
impl Sync for PhantomPinned
impl Unpin for PhantomPinned
impl UnwindSafe for PhantomPinned
impl<T> Any for PhantomPinned
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for PhantomPinned
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for PhantomPinned
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for PhantomPinned
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for PhantomPinned
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for PhantomPinned
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for PhantomPinned
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for PhantomPinned
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>