[][src]Trait arduino_mkrzero::gpio::v2::AnyPin

pub trait AnyPin: Sealed {
    type Id: PinId;
    type Mode: PinMode;
}

Meta-type representing any Pin

All instances of Pin implement this trait. When used as a trait bound, it acts to encapsulate a Pin. Without this trait, a completely generic Pin would require two type parameters. When using this trait as a bound, only one type parameter is required, yet you can still recover each type parameter of the corresponding Pin through the associated types.

Associated Types

type Id: PinId[src]

PinId of the corresponding Pin

type Mode: PinMode[src]

PinMode of the corresponding Pin

Loading content...

Implementors

impl<I, M> AnyPin for Pin<I, M> where
    I: PinId,
    M: PinMode
[src]

type Id = I

type Mode = M

Loading content...