pub trait PinSet: Sealed {
type Datin<'d>;
type Ckin<'d>;
const HAS_DATA: bool;
const HAS_CLK: bool;
// Required methods
fn extract_datin<'d>(pin: Self::Datin<'d>) -> Option<Flex<'d>>;
fn extract_ckin<'d>(pin: Self::Ckin<'d>) -> Option<Flex<'d>>;
}Expand description
Type-level pin presence of one transceiver. Exactly three states exist; “clock without data” has no representative and is therefore inexpressible.
Required Associated Constants§
Required Associated Types§
Required Methods§
Sourcefn extract_datin<'d>(pin: Self::Datin<'d>) -> Option<Flex<'d>>
fn extract_datin<'d>(pin: Self::Datin<'d>) -> Option<Flex<'d>>
Extracts the Flex if present, otherwise returns None.
Sourcefn extract_ckin<'d>(pin: Self::Ckin<'d>) -> Option<Flex<'d>>
fn extract_ckin<'d>(pin: Self::Ckin<'d>) -> Option<Flex<'d>>
Extracts the Flex if present, otherwise returns None.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".