rustc_middle::ty::abstract_const

Type Alias BoundAbstractConst

Source
pub type BoundAbstractConst<'tcx> = Result<Option<EarlyBinder<'tcx, Const<'tcx>>>, ErrorGuaranteed>;

Aliased Type§

enum BoundAbstractConst<'tcx> {
    Ok(Option<EarlyBinder<TyCtxt<'tcx>, Const<'tcx>>>),
    Err(ErrorGuaranteed),
}

Variants§

§

Ok(Option<EarlyBinder<TyCtxt<'tcx>, Const<'tcx>>>)

Contains the success value

§

Err(ErrorGuaranteed)

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

Size for each variant:

  • Ok: 8 bytes
  • Err: 8 bytes