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,

§

type Word = <T as ReadTarget>::Word

source§

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

§

type Word = <T as ReadTarget>::Word

Implementors§

source§

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

§

type Word = W