Fix reflect impls for Result

This commit is contained in:
tyranron 2022-06-21 14:50:16 +02:00
parent 2d89de3403
commit d648181b26
No known key found for this signature in database
GPG key ID: 762E144FB230A4F0

View file

@ -2,25 +2,26 @@
use crate::reflect; use crate::reflect;
/* impl<T, E, BH> reflect::BaseType<BH> for Result<T, E>
impl<T, E, S> reflect::BaseType<S> for Result<T, E>
where where
T: reflect::BaseType<S>, T: reflect::BaseType<BH>,
BH: ?Sized,
{ {
const NAME: reflect::Type = T::NAME; const NAME: reflect::Type = T::NAME;
} }
impl<T, E, S> reflect::BaseSubTypes<S> for Result<T, E> impl<T, E, BH> reflect::BaseSubTypes<BH> for Result<T, E>
where where
T: reflect::BaseSubTypes<S>, T: reflect::BaseSubTypes<BH>,
BH: ?Sized,
{ {
const NAMES: reflect::Types = T::NAMES; const NAMES: reflect::Types = T::NAMES;
} }
impl<T, E, S> reflect::WrappedType<S> for Result<T, E> impl<T, E, BH> reflect::WrappedType<BH> for Result<T, E>
where where
T: reflect::WrappedType<S>, T: reflect::WrappedType<BH>,
BH: ?Sized,
{ {
const VALUE: reflect::WrappedValue = T::VALUE; const VALUE: reflect::WrappedValue = T::VALUE;
} }
*/