pub unsafe trait WriteTarget {
type Word: Word;
// Provided method
fn as_write_buffer(&mut self) -> (*mut Self::Word, usize) { ... }
}Expand description
Trait for DerefMut targets used by the blanket DmaWriteBuffer impl.
This trait exists solely to work around https://github.com/rust-lang/rust/issues/20400.
§Safety
as_write_buffermust adhere to the safety requirements documented forWriteBuffer::write_buffer.
Required Associated Types§
Provided Methods§
fn as_write_buffer(&mut self) -> (*mut Self::Word, usize)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".