Add comment about Encodable/Decodable impl

This commit is contained in:
Jack Huey 2021-01-17 12:32:05 -05:00
parent c76f47832a
commit d797a85491

View File

@ -955,6 +955,8 @@ impl<'tcx> PolyExistentialTraitRef<'tcx> {
/// erase, or otherwise "discharge" these bound vars, we change the /// erase, or otherwise "discharge" these bound vars, we change the
/// type from `Binder<T>` to just `T` (see /// type from `Binder<T>` to just `T` (see
/// e.g., `liberate_late_bound_regions`). /// e.g., `liberate_late_bound_regions`).
///
/// `Decodable` and `Encodable` is implemented for `Binder<T>` using the `impl_binder_encode_decode!` macro.
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)] #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
pub struct Binder<T>(T); pub struct Binder<T>(T);