Skip to main content

ProtectedWrite

Trait ProtectedWrite 

Source
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§

Source

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".

Implementors§