rustc_middle::mir::interpret

Type Alias InterpResult

source
pub type InterpResult<'tcx, T = ()> = InterpResult_<'tcx, T>;

Aliased Type§

struct InterpResult<'tcx, T = ()> {
    res: Result<T, InterpErrorInfo<'tcx>>,
    guard: Guard,
}

Fields§

§res: Result<T, InterpErrorInfo<'tcx>>§guard: Guard

Trait Implementations§

source§

impl<'tcx, T, E: Into<InterpErrorInfo<'tcx>>> From<Result<T, E>> for InterpResult<'tcx, T>

source§

fn from(value: Result<T, E>) -> Self

Converts to this type from the input type.
source§

impl<'tcx, T, V: FromIterator<T>> FromIterator<InterpResult_<'tcx, T>> for InterpResult<'tcx, V>

source§

fn from_iter<I: IntoIterator<Item = InterpResult<'tcx, T>>>(iter: I) -> Self

Creates a value from an iterator. Read more

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.