Trait Decode

Source
pub trait Decode<T>: TryDecode<T> {
    // Provided method
    fn decode<D: CANRead>(&self, data: &D) -> T { ... }
}
Expand description

A trait modeling the not failable decoding of data.

Provided Methods§

Source

fn decode<D: CANRead>(&self, data: &D) -> T

Decodes the data.

§Panics

If the data is not decodable internally, the call to decode panics.

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§