Fix reflect
impls for Result
This commit is contained in:
parent
2d89de3403
commit
d648181b26
1 changed files with 9 additions and 8 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
Loading…
Reference in a new issue