Skip to main content

Driver

Trait Driver 

Source
pub trait Driver<T: Ix> {
    const SUPPORTED: bool;
}
Expand description

A driver adapts an external representation (serde, zerocopy, …) to any Ix type by reading its Manifest.

All capability decisions are const: code that branches on Driver::SUPPORTED is dead-code-eliminated, keeping drivers zero-cost.

Required Associated Constants§

Source

const SUPPORTED: bool

Whether this driver can losslessly handle T’s layout and schema.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§