is_uninit_read

Function is_uninit_read 

Source
pub fn is_uninit_read<T>() -> bool
Expand description

Checks at runtime if a type implements the UninitRead trait.

This function allows for dynamic dispatch based on whether a reader can be safely used with uninitialized buffers.

The check is performed using a compile-time trick that is evaluated when the function is instantiated for a given type T, but it can be called like any normal function. It has a small runtime cost.