pub trait Decode: Sized {
const N_COLS: usize;
// Required method
fn decode_at(row: &Row<'_>, col_offset: usize) -> Result<Self>;
// Provided method
fn decode(row: &Row<'_>) -> Result<Self> { ... }
}Required Associated Constants§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".