rustc_trait_selection::traits::solve

Type Alias QueryResult

Source
pub type QueryResult<'tcx> = Result<Canonical<TyCtxt<'tcx>, Response<TyCtxt<'tcx>>>, NoSolution>;

Aliased Type§

enum QueryResult<'tcx> {
    Ok(Canonical<TyCtxt<'tcx>, Response<TyCtxt<'tcx>>>),
    Err(NoSolution),
}

Variants§

§

Ok(Canonical<TyCtxt<'tcx>, Response<TyCtxt<'tcx>>>)

Contains the success value

§

Err(NoSolution)

Contains the error value

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: 40 bytes

Size for each variant:

  • Ok: 40 bytes
  • Err: 0 bytes