Trait _embedded_dma_WriteTarget

Source
pub unsafe trait _embedded_dma_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 for [T]
where T: WriteTarget,

Source§

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

Source§

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

Implementors§

Source§

impl<W> WriteTarget for W
where W: Word,

Source§

type Word = W