Skip to content

Commit 9f7f806

Browse files
Clarify descriptions for BlobDecodable and LazyDecodable
1 parent 0531906 commit 9f7f806

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/serialization.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@ and `Encodable`.
128128
not implement `TyEncoder`.
129129
- [`MetadataEncodable`] generates implementations that
130130
only allow decoding by [`rustc_metadata::rmeta::encoder::EncodeContext`].
131-
- [`BlobDecodable`] and [`LazyDecodable`] generates implementations that decode
132-
with the metadata blob decoders in [`rustc_metadata::rmeta`]; use `BlobDecodable`
133-
when the type has no lazy metadata handles, and `LazyDecodable` when it does.
131+
- [`BlobDecodable`] and [`LazyDecodable`] serve as the decoding counterparts to
132+
`MetadataEncodable`. They generate implementations that decode with the
133+
metadata blob decoders in `rustc_metadata::rmeta`; use `BlobDecodable` when
134+
the type has no lazy metadata handles, and `LazyDecodable` when it does.
134135
- `TyEncodable` and `TyDecodable` generate implementation that apply to any
135136
`TyEncoder` or `TyDecoder`. These should be used for types that are only
136137
serialized in crate metadata and/or the incremental cache, which is most

0 commit comments

Comments
 (0)