Skip to main content

AtomicU16

Type Alias AtomicU16 

Source
pub type AtomicU16 = Cell<u16>;
Available on non-crate feature sync only.
Expand description

A integer type which can be safely shared between threads when “sync” feature is enabled.
A integer type with non-threadsafe interior mutability when “sync” feature is not enabled.

This type has the same in-memory representation as a i16.

Aliased Type§

pub struct AtomicU16 { /* private fields */ }