Trait rp2040_hal::pwm::AnySlice

source ·
pub trait AnySlice
where Self: Sealed + Is<Type = Slice<<Self as AnySlice>::Id, <Self as AnySlice>::Mode>>, Self::Mode: ValidSliceMode<Self::Id>,
{ type Id: SliceId; type Mode: SliceMode; }
Expand description

Type class for Slice types

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

Required Associated Types§

source

type Id: SliceId

SliceId of the corresponding Slice

source

type Mode: SliceMode

SliceMode of the corresponding Slice

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<S, M> AnySlice for Slice<S, M>
where S: SliceId, M: ValidSliceMode<S>,

§

type Id = S

§

type Mode = M