pub type Value<'tcx> = Result<&'tcx Canonical<'tcx, QueryResponse<'tcx, Ty<'tcx>>>, NoSolution>;

Aliased Type§

enum Value<'tcx> {
    Ok(&'tcx Canonical<'tcx, QueryResponse<'tcx, Ty<'tcx>>>),
    Err(NoSolution),
}

Variants§

§1.0.0

Ok(&'tcx Canonical<'tcx, QueryResponse<'tcx, Ty<'tcx>>>)

Contains the success value

§1.0.0

Err(NoSolution)

Contains the error value

Trait Implementations§

source§

impl<T> EraseType for Result<&T, NoSolution>

§

type Result = [u8; 8]

source§

impl<'tcx, T: Lift<'tcx>, E: Lift<'tcx>> Lift<'tcx> for Result<T, E>

§

type Lifted = Result<<T as Lift<'tcx>>::Lifted, <E as Lift<'tcx>>::Lifted>

source§

fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>

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: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size:8 bytes

Size for each variant:

  • Ok: 8 bytes
  • Err: 0 bytes