Struct wasmer_types::lib::std::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§
source§impl Archive for PhantomPinned
impl Archive for PhantomPinned
source§impl<C> CheckBytes<C> for PhantomPinnedwhere
C: ?Sized,
impl<C> CheckBytes<C> for PhantomPinnedwhere C: ?Sized,
§type Error = Infallible
type Error = Infallible
The error that may result from checking the type.
source§unsafe fn check_bytes<'a>(
value: *const PhantomPinned,
_: &mut C
) -> Result<&'a PhantomPinned, <PhantomPinned as CheckBytes<C>>::Error>
unsafe fn check_bytes<'a>( value: *const PhantomPinned, _: &mut C ) -> Result<&'a PhantomPinned, <PhantomPinned as CheckBytes<C>>::Error>
Checks whether the given pointer points to a valid value within the
given context. Read more
source§impl Clone for PhantomPinned
impl Clone for PhantomPinned
source§fn clone(&self) -> PhantomPinned
fn clone(&self) -> PhantomPinned
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PhantomPinned
impl Debug for PhantomPinned
source§impl Default for PhantomPinned
impl Default for PhantomPinned
source§fn default() -> PhantomPinned
fn default() -> PhantomPinned
Returns the “default value” for a type. Read more
source§impl<D> Deserialize<PhantomPinned, D> for PhantomPinnedwhere
D: Fallible + ?Sized,
impl<D> Deserialize<PhantomPinned, D> for PhantomPinnedwhere D: Fallible + ?Sized,
source§fn deserialize(
&self,
_: &mut D
) -> Result<PhantomPinned, <D as Fallible>::Error>
fn deserialize( &self, _: &mut D ) -> Result<PhantomPinned, <D as Fallible>::Error>
Deserializes using the given deserializer
source§impl Hash for PhantomPinned
impl Hash for PhantomPinned
source§impl Ord for PhantomPinned
impl Ord for PhantomPinned
source§fn cmp(&self, other: &PhantomPinned) -> Ordering
fn cmp(&self, other: &PhantomPinned) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PhantomPinned> for PhantomPinned
impl PartialEq<PhantomPinned> for PhantomPinned
source§fn eq(&self, other: &PhantomPinned) -> bool
fn eq(&self, other: &PhantomPinned) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PhantomPinned> for PhantomPinned
impl PartialOrd<PhantomPinned> for PhantomPinned
source§fn partial_cmp(&self, other: &PhantomPinned) -> Option<Ordering>
fn partial_cmp(&self, other: &PhantomPinned) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PhantomPinned
impl Eq for PhantomPinned
impl StructuralEq for PhantomPinned
impl StructuralPartialEq for PhantomPinned
impl !Unpin for PhantomPinned
Auto Trait Implementations§
impl RefUnwindSafe for PhantomPinned
impl Send for PhantomPinned
impl Sync for PhantomPinned
impl UnwindSafe for PhantomPinned
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere T: Archive,
§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive
, it may be unsized. Read more§type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
source§unsafe fn resolve_metadata(
&self,
_: usize,
_: <T as ArchiveUnsized>::MetadataResolver,
_: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
unsafe fn resolve_metadata( &self, _: usize, _: <T as ArchiveUnsized>::MetadataResolver, _: *mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata )
Creates the archived version of the metadata for this value at the given position and writes
it to the given output. Read more
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.