pub trait CanExt: Sized + Instance {
// Required methods
fn can<PULL: UpMode>(
self,
usb: USB,
pins: (impl RInto<Self::Tx, 0>, impl RInto<Self::Rx<PULL>, 0>),
rcc: &mut RCC,
) -> Can<Self, PULL>;
fn can_loopback(self, usb: USB, rcc: &mut RCC) -> Can<Self, Floating>;
}
Required Methods§
fn can<PULL: UpMode>( self, usb: USB, pins: (impl RInto<Self::Tx, 0>, impl RInto<Self::Rx<PULL>, 0>), rcc: &mut RCC, ) -> Can<Self, PULL>
fn can_loopback(self, usb: USB, rcc: &mut RCC) -> Can<Self, Floating>
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.