Type Alias rustc_middle::ty::relate::RelateResult

source ·
pub type RelateResult<'tcx, T> = Result<T, TypeError<'tcx>>;

Aliased Type§

enum RelateResult<'tcx, T> {
    Ok(T),
    Err(TypeError<'tcx>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(TypeError<'tcx>)

Contains the error value

Trait Implementations§

source§

impl<T, E> MaybeResult<T> for Result<T, E>

§

type Error = E

source§

fn from(x: Result<T, Self::Error>) -> Self

source§

fn to_result(self) -> Result<T, Self::Error>

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.