Skip to main content

AtomicLoad

Struct AtomicLoad 

Source
pub struct AtomicLoad<SO> { /* private fields */ }
Expand description

A wrapper that archives an atomic by loading its value with a particular ordering.

When serializing, the specified ordering will be used to load the value from the source atomic. The underlying archived type is still a non-atomic value.

§Example

use core::sync::atomic::AtomicU32;

use rkyv::{
    with::{AtomicLoad, Relaxed},
    Archive,
};

#[derive(Archive)]
struct Example {
    #[rkyv(with = AtomicLoad<Relaxed>)]
    a: AtomicU32,
}

Trait Implementations§

Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<bool>> for AtomicLoad<SO>

Source§

type Archived = bool

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicBool, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<i16>> for AtomicLoad<SO>

Source§

type Archived = i16_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicI16, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<i32>> for AtomicLoad<SO>

Source§

type Archived = i32_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicI32, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<i64>> for AtomicLoad<SO>

Source§

type Archived = i64_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicI64, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<i8>> for AtomicLoad<SO>

Source§

type Archived = i8

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with(field: &AtomicI8, _: Self::Resolver, out: Place<Self::Archived>)

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<isize>> for AtomicLoad<SO>

Source§

type Archived = i32_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicIsize, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<u16>> for AtomicLoad<SO>

Source§

type Archived = u16_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicU16, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<u32>> for AtomicLoad<SO>

Source§

type Archived = u32_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicU32, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<u64>> for AtomicLoad<SO>

Source§

type Archived = u64_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicU64, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<u8>> for AtomicLoad<SO>

Source§

type Archived = u8

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with(field: &AtomicU8, _: Self::Resolver, out: Place<Self::Archived>)

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<Atomic<usize>> for AtomicLoad<SO>

Source§

type Archived = u32_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicUsize, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicI16_be> for AtomicLoad<SO>

Source§

type Archived = i16_be

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicI16_be, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicI16_le> for AtomicLoad<SO>

Source§

type Archived = i16_le

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicI16_le, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicI32_be> for AtomicLoad<SO>

Source§

type Archived = i32_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicI32_be, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicI32_le> for AtomicLoad<SO>

Source§

type Archived = i32_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicI32_le, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicI64_be> for AtomicLoad<SO>

Source§

type Archived = i64_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicI64_be, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicI64_le> for AtomicLoad<SO>

Source§

type Archived = i64_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicI64_le, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicU16_be> for AtomicLoad<SO>

Source§

type Archived = u16_be

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicU16_be, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicU16_le> for AtomicLoad<SO>

Source§

type Archived = u16_le

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicU16_le, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicU32_be> for AtomicLoad<SO>

Source§

type Archived = u32_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicU32_be, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicU32_le> for AtomicLoad<SO>

Source§

type Archived = u32_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicU32_le, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicU64_be> for AtomicLoad<SO>

Source§

type Archived = u64_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicU64_be, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: LoadOrdering> ArchiveWith<AtomicU64_le> for AtomicLoad<SO>

Source§

type Archived = u64_ule

The archived type of Self with F.
Source§

type Resolver = ()

The resolver of a Self with F.
Source§

fn resolve_with( field: &AtomicU64_le, _: Self::Resolver, out: Place<Self::Archived>, )

Resolves the archived type using a reference to the field type F.
Source§

impl<SO: Debug> Debug for AtomicLoad<SO>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<D, SO> DeserializeWith<bool, Atomic<bool>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with(field: &bool, _: &mut D) -> Result<AtomicBool, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i16_be, AtomicI16_be, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with(field: &i16_be, _: &mut D) -> Result<AtomicI16_be, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i16_le, AtomicI16_le, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with(field: &i16_le, _: &mut D) -> Result<AtomicI16_le, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i16_ule, Atomic<i16>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedI16, _: &mut D, ) -> Result<AtomicI16, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i32_ule, Atomic<i32>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedI32, _: &mut D, ) -> Result<AtomicI32, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i32_ule, Atomic<isize>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedIsize, _: &mut D, ) -> Result<AtomicIsize, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i32_ule, AtomicI32_be, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedI32, _: &mut D, ) -> Result<AtomicI32_be, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i32_ule, AtomicI32_le, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedI32, _: &mut D, ) -> Result<AtomicI32_le, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i64_ule, Atomic<i64>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedI64, _: &mut D, ) -> Result<AtomicI64, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i64_ule, AtomicI64_be, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedI64, _: &mut D, ) -> Result<AtomicI64_be, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i64_ule, AtomicI64_le, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedI64, _: &mut D, ) -> Result<AtomicI64_le, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<i8, Atomic<i8>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with(field: &i8, _: &mut D) -> Result<AtomicI8, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u16_be, AtomicU16_be, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with(field: &u16_be, _: &mut D) -> Result<AtomicU16_be, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u16_le, AtomicU16_le, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with(field: &u16_le, _: &mut D) -> Result<AtomicU16_le, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u16_ule, Atomic<u16>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedU16, _: &mut D, ) -> Result<AtomicU16, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u32_ule, Atomic<u32>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedU32, _: &mut D, ) -> Result<AtomicU32, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u32_ule, Atomic<usize>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedUsize, _: &mut D, ) -> Result<AtomicUsize, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u32_ule, AtomicU32_be, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedU32, _: &mut D, ) -> Result<AtomicU32_be, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u32_ule, AtomicU32_le, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedU32, _: &mut D, ) -> Result<AtomicU32_le, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u64_ule, Atomic<u64>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedU64, _: &mut D, ) -> Result<AtomicU64, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u64_ule, AtomicU64_be, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedU64, _: &mut D, ) -> Result<AtomicU64_be, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u64_ule, AtomicU64_le, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with( field: &ArchivedU64, _: &mut D, ) -> Result<AtomicU64_le, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<D, SO> DeserializeWith<u8, Atomic<u8>, D> for AtomicLoad<SO>
where D: Fallible + ?Sized,

Source§

fn deserialize_with(field: &u8, _: &mut D) -> Result<AtomicU8, D::Error>

Deserializes the field type F using the given deserializer.
Source§

impl<S, SO> SerializeWith<Atomic<bool>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with(_: &AtomicBool, _: &mut S) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<i16>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with(_: &AtomicI16, _: &mut S) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<i32>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with(_: &AtomicI32, _: &mut S) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<i64>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with(_: &AtomicI64, _: &mut S) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<i8>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with(_: &AtomicI8, _: &mut S) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<isize>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicIsize, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<u16>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with(_: &AtomicU16, _: &mut S) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<u32>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with(_: &AtomicU32, _: &mut S) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<u64>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with(_: &AtomicU64, _: &mut S) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<u8>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with(_: &AtomicU8, _: &mut S) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<Atomic<usize>, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicUsize, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicI16_be, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicI16_be, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicI16_le, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicI16_le, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicI32_be, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicI32_be, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicI32_le, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicI32_le, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicI64_be, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicI64_be, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicI64_le, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicI64_le, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicU16_be, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicU16_be, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicU16_le, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicU16_le, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicU32_be, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicU32_be, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicU32_le, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicU32_le, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicU64_be, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicU64_be, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.
Source§

impl<S, SO> SerializeWith<AtomicU64_le, S> for AtomicLoad<SO>
where S: Fallible + ?Sized, SO: LoadOrdering,

Source§

fn serialize_with( _: &AtomicU64_le, _: &mut S, ) -> Result<Self::Resolver, S::Error>

Serializes the field type F using the given serializer.

Auto Trait Implementations§

§

impl<SO> Freeze for AtomicLoad<SO>

§

impl<SO> RefUnwindSafe for AtomicLoad<SO>
where SO: RefUnwindSafe,

§

impl<SO> Send for AtomicLoad<SO>
where SO: Send,

§

impl<SO> Sync for AtomicLoad<SO>
where SO: Sync,

§

impl<SO> Unpin for AtomicLoad<SO>
where SO: Unpin,

§

impl<SO> UnsafeUnpin for AtomicLoad<SO>

§

impl<SO> UnwindSafe for AtomicLoad<SO>
where SO: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.