CanExt

Trait CanExt 

Source
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§

Source

fn can( self, pins: (impl Into<Self::Tx>, impl Into<Self::Rx>), rcc: &mut RCC, ) -> Can<Self>

Source

fn tx(self, tx_pin: impl Into<Self::Tx>, rcc: &mut RCC) -> Can<Self>

Source

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.

Implementors§

Source§

impl<CAN: Instance> CanExt for CAN