pub trait CanExt: Sized + Instance {
// Required methods
fn can(
self,
pins: (impl Into<Self::Tx>, impl Into<Self::Rx>),
rcc: &mut RCC,
) -> Can<Self>;
fn tx(self, tx_pin: impl Into<Self::Tx>, rcc: &mut RCC) -> Can<Self>;
fn rx(self, rx_pin: impl Into<Self::Rx>, rcc: &mut RCC) -> Can<Self>;
}Required Methods§
fn can( self, pins: (impl Into<Self::Tx>, impl Into<Self::Rx>), rcc: &mut RCC, ) -> Can<Self>
fn tx(self, tx_pin: impl Into<Self::Tx>, rcc: &mut RCC) -> Can<Self>
fn rx(self, rx_pin: impl Into<Self::Rx>, rcc: &mut RCC) -> Can<Self>
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.