pub trait ProtectedWrite<T: Copy> {
// Required method
fn protected_write(&self, f: impl FnOnce(&mut T));
}Expand description
Provides a function to disable write protection for a single write operation on a register.
Required Methods§
Sourcefn protected_write(&self, f: impl FnOnce(&mut T))
fn protected_write(&self, f: impl FnOnce(&mut T))
Performs a write operation on a register, disabling WP before and enabling it after.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".