Trait _embedded_dma_ReadTarget

Source
pub unsafe trait _embedded_dma_ReadTarget {
    type Word: Word;

    // Provided method
    fn as_read_buffer(&self) -> (*const Self::Word, usize) { ... }
}
Expand description

Trait for Deref targets used by the blanket DmaReadBuffer 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_read_buffer(&self) -> (*const Self::Word, usize)

Implementations on Foreign Types§

Source§

impl<T> ReadTarget for [T]
where T: ReadTarget,

Source§

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

Implementors§

Source§

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

Source§

type Word = W