Trait serpente::gpio::v2::pin::OptionalPin

source ·
pub trait OptionalPin: Sealed {
    type Id: OptionalPinId;
}
Expand description

Type-level equivalent of Option<PinId>

See the OptionalKind documentation for more details on the pattern.

Required Associated Types§

Implementors§

source§

impl OptionalPin for NoneT

§

type Id = NoneT

source§

impl<P> OptionalPin for Pwhere P: AnyPin,

§

type Id = <P as AnyPin>::Id