Trait embedded_hal_compat::ForwardCompat

source ·
pub trait ForwardCompat<T, M = ()> {
    // Required method
    fn forward(self) -> Forward<T, M>;
}
Expand description

Helper trait to convert a type for forward compatibility call .forward() on e-h@0.2.x types to create an e-h@1.x.x compatible wrapper object

Required Methods§

source

fn forward(self) -> Forward<T, M>

Create an e-h-c forward compatibility wrapper around and e-h object Available methods depend on the wrapped type

Implementors§

source§

impl<T, M> ForwardCompat<T, M> for T

Blanket ForwardCompat implementation (note input/output/io pins may require type annotations)