Struct loom::sync::atomic::AtomicPtr

source ·
pub struct AtomicPtr<T>(_);
Expand description

Mock implementation of std::sync::atomic::AtomicPtr.

Implementations

Creates a new instance of AtomicPtr.

Loads a value from the pointer.

Stores a value into the pointer.

Stores a value into the pointer, returning the previous value.

Stores a value into the pointer if the current value is the same as the current value.

Stores a value into the pointer if the current value is the same as the current value.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.