pub trait ToCanFrame: Sized + Into<Self::Repr> {
type Repr: CanRepr;
const ID: Id;
const LEN: usize;
// Provided method
fn to_can_frame<F: Frame>(self) -> F { ... }
}Expand description
Creates a CAN frame
All the users have to do is specify Repr, ID, and LEN
Required Associated Constants§
Required Associated Types§
Provided Methods§
fn to_can_frame<F: Frame>(self) -> F
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.