AnyPin

Trait AnyPin 

Source
pub trait AnyPin:
    Sealed
    + Sealed
    + Is<Type = Pin<Self::Id, Self::Function, Self::Pull>> {
    type Id: PinId;
    type Function: Function;
    type Pull: PullType;
}
Expand description

Type class for Pin types.

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

Required Associated Types§

Source

type Id: PinId

PinId of the corresponding Pin

Source

type Function: Function

func::Function of the corresponding Pin

Source

type Pull: PullType

PullType of the corresponding Pin

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I, F, P> AnyPin for Pin<I, F, P>
where I: PinId, F: Function, P: PullType,

Source§

type Id = I

Source§

type Function = F

Source§

type Pull = P