Trait atsamd_hal::sercom::pad::GetOptionalPad
source · [−]pub trait GetOptionalPad<S: Sercom>: OptionalPinId {
type PadNum: OptionalPadNum;
type Pad: OptionalPad;
}
Expand description
Type-level function mapping OptionalPinId
s to their corresponding
OptionalPad
s
This trait acts as a [type-level function] mapping OptionalPinId
s to their
corresponding OptionalPad
. In pseudo-Rust, it is the type-level equivalent
of starting with Option<PinId>
and calling .map(GetPad)
to recover an
Option<Pad>
.