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.