//! Shared read/write registers.
//!//! See [`AtomicRegister`].
modatomic;pubuseself::atomic::AtomicRegister;modmutex;pubuseself::mutex::MutexRegister;/// A shared-memory register.
pubtraitRegister{typeValue;/// Creates a new register.
fnnew()->Self;/// Returns the value currently contained in the register.
fnread(&self)->Self::Value;/// Sets contents of the register to the specified value.
fnwrite(&self, value:Self::Value);}