Struct abox::AtomicBox [] [src]

pub struct AtomicBox<T: Sized> { /* fields omitted */ }

AtomicBox is a safe wrapper around AtomicPtr You can safely swap values using the replace_with method

Methods

impl<T: Sized> AtomicBox<T>
[src]

[src]

Allocates a new AtomicBox containing the given value

[src]

[src]

Atomically replace the inner value with the result of applying the given closure to the current value

Trait Implementations

impl<T: Debug + Sized> Debug for AtomicBox<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Sized + PartialEq> PartialEq for AtomicBox<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<T: Sized> Drop for AtomicBox<T>
[src]

[src]

Executes the destructor for this type. Read more

impl<T: Sized> Sync for AtomicBox<T>
[src]

impl<T: Sized> Send for AtomicBox<T>
[src]