LazyDecodable in rustc_macros - Rust
Description: See docs on derive `Decodable`.

Skip to main content

## LazyDecodable

# Derive Macro LazyDecodable

Source

    #[derive(LazyDecodable)]

Expand description

See docs on derive `Decodable`.

Derives `Decodable<D> for T where D: LazyDecoder`. This constrains the decoder to be specifically the decoder that can decode `LazyArray`s, `LazyValue`s amd `LazyTable`s in metadata. Therefore, we only need this on things containing LazyArray really.

Most decodable derives mirror an encodable derive. `LazyDecodable` and `BlobDecodable` together roughly mirror `MetadataEncodable`