Trait XoscId

Source
pub trait XoscId: Sealed {
    type XIn: PinId;
    type XOut: PinId;

    const NUM: usize;
}
Expand description

Type-level enum identifying one of two possible Xoscs

The types implementing this trait, i.e. Xosc0Id and Xosc1Id, are type-level variants of XoscId, and they identify one of two possible external crystal oscillators.

See the documentation on type-level programming and specifically type-level enums for more details.

Required Associated Constants§

Source

const NUM: usize

Corresponding numeric index

Required Associated Types§

Source

type XIn: PinId

Corresponding XIN PinId

Source

type XOut: PinId

Corresponding XOUT PinId

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§