pub trait Role {
// Required methods
fn pin_type() -> PinType;
fn output_type() -> OutputType;
}
Expand description
Trait for TSC pin roles.
This trait defines the behavior and properties of different TSC pin roles.
It is implemented by the marker types Channel
, Sample
, and Shield
.
Required Methods§
Sourcefn output_type() -> OutputType
fn output_type() -> OutputType
Returns the OutputType
associated with this role.
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.