Struct core::marker::PhantomPinned
1.33.0 · source · [−]pub struct PhantomPinned;Expand description
A marker type which does not implement Unpin.
If a type contains a PhantomPinned, it will not implement Unpin by default.
Trait Implementations
impl Clone for PhantomPinned
source
impl Clone for PhantomPinned
sourcefn clone(&self) -> PhantomPinned
source
fn clone(&self) -> PhantomPinned
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for PhantomPinned
source
impl Debug for PhantomPinned
sourceimpl Default for PhantomPinned
source
impl Default for PhantomPinned
sourcefn default() -> PhantomPinned
source
fn default() -> PhantomPinned
sourceReturns the “default value” for a type. Read more
impl Hash for PhantomPinned
source
impl Hash for PhantomPinned
sourceimpl Ord for PhantomPinned
source
impl Ord for PhantomPinned
sourcefn cmp(&self, other: &PhantomPinned) -> Ordering
source
fn cmp(&self, other: &PhantomPinned) -> Ordering
sourcefn max(self, other: Self) -> Self where
Self: Sized,
1.21.0 · source
fn max(self, other: Self) -> Self where
Self: Sized,
1.21.0 · sourceCompares and returns the maximum of two values. Read more
impl PartialEq<PhantomPinned> for PhantomPinned
source
impl PartialEq<PhantomPinned> for PhantomPinned
sourceimpl PartialOrd<PhantomPinned> for PhantomPinned
source
impl PartialOrd<PhantomPinned> for PhantomPinned
sourcefn partial_cmp(&self, other: &PhantomPinned) -> Option<Ordering>
source
fn partial_cmp(&self, other: &PhantomPinned) -> Option<Ordering>
sourceThis method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0 · source
fn lt(&self, other: &Rhs) -> bool
1.0.0 · sourceThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0 · source
fn le(&self, other: &Rhs) -> bool
1.0.0 · sourceThis method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for PhantomPinned
sourceimpl Eq for PhantomPinned
sourceimpl StructuralEq for PhantomPinned
sourceimpl StructuralPartialEq for PhantomPinned
sourceimpl !Unpin for PhantomPinned
sourceAuto Trait Implementations
impl RefUnwindSafe for PhantomPinned
impl Send for PhantomPinned
impl Sync for PhantomPinned
impl UnwindSafe for PhantomPinned
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more