Trait WriteTarget

Source
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

Required Associated Types§

Provided Methods§

Source

fn as_write_buffer(&mut self) -> (*mut Self::Word, usize)

Implementations on Foreign Types§

Source§

impl<T: WriteTarget> WriteTarget for [T]

Source§

impl<T: WriteTarget> WriteTarget for MaybeUninit<T>

Source§

impl<T: WriteTarget, const N: usize> WriteTarget for [T; N]

Implementors§

Source§

impl<W: Word> WriteTarget for W

Source§

type Word = W