Struct PhantomPinned

pub struct PhantomPinned;

A marker type which does not implement Unpin.

If a type contains a PhantomPinned, it will not implement Unpin by default.

Trait Implementations

impl !Unpin for PhantomPinned

impl !UnsafeUnpin for PhantomPinned

impl Clone for PhantomPinned

fn clone(&self) -> PhantomPinned

impl Copy for PhantomPinned

impl Debug for PhantomPinned

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for PhantomPinned

fn default() -> PhantomPinned

impl Eq for PhantomPinned

fn assert_fields_are_eq(&self)

impl Hash for PhantomPinned

fn hash<__H: Hasher>(&self, state: &mut __H)

impl Ord for PhantomPinned

fn cmp(&self, other: &PhantomPinned) -> Ordering

impl PartialEq for PhantomPinned

fn eq(&self, other: &PhantomPinned) -> bool

impl PartialOrd for PhantomPinned

fn partial_cmp(&self, other: &PhantomPinned) -> Option<Ordering>

impl StructuralPartialEq for PhantomPinned

impl TrivialClone for PhantomPinned

Auto Trait Implementations

impl Freeze for PhantomPinned

impl RefUnwindSafe for PhantomPinned

impl Send for PhantomPinned

impl Sync for PhantomPinned

impl UnwindSafe for PhantomPinned

Blanket Implementations

impl<T> Any for PhantomPinned where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for PhantomPinned where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for PhantomPinned where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for PhantomPinned where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for PhantomPinned

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Printable for PhantomPinned where T: Copy + Debug,

impl<T> SizeHint for PhantomPinned where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for PhantomPinned

impl<T, U> Into<U> for PhantomPinned where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for PhantomPinned where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for PhantomPinned where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>