Trait ReadTarget

Source
pub unsafe trait 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> ReadTarget for [T]

Source§

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

Implementors§

Source§

impl<W: Word> ReadTarget for W

Source§

type Word = W