Skip to main content

AtomicBool

Type Alias AtomicBool 

1.0.0 · Source
pub type AtomicBool = Atomic<bool>;
Expand description

A boolean type which can be safely shared between threads.

This type has the same size, alignment, and bit validity as a bool.

Note: This type is only available on platforms that support atomic loads and stores of u8.

Aliased Type§

pub struct AtomicBool { /* private fields */ }

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 1 byte