Trait itsybitsy_m4::spi::AnyConfig

source ·
pub trait AnyConfig: Is<Type = Config<Self::Pads, Self::OpMode, Self::Size>> {
    type Sercom: Sercom;
    type Pads: ValidPads<Sercom = Self::Sercom>;
    type Capability: Capability;
    type OpMode: OpMode;
    type Size: Size;
    type Word: 'static;
}
Expand description

Type class for all possible Config types

This trait uses the AnyKind trait pattern to create a type class for Config types. See the AnyKind documentation for more details on the pattern.

In addition to the normal, AnyKind associated types. This trait also copies the Sercom, Capability and Word types, to make it easier to apply bounds to these types at the next level of abstraction.

Required Associated Types§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<P, M, Z> AnyConfig for Config<P, M, Z>
where P: ValidPads, M: OpMode, Z: Size,

§

type Sercom = <P as PadSet>::Sercom

§

type Pads = P

§

type Capability = <P as ValidPads>::Capability

§

type OpMode = M

§

type Size = Z

§

type Word = <Z as Length>::Word