Struct rustc_trait_selection::traits::const_evaluatable::AbstractConst [−][src]
Expand description
A tree representing an anonymous constant.
This is only able to represent a subset of MIR
,
and should not leak any information about desugarings.
Fields
inner: &'tcx [Node<'tcx>]
substs: SubstsRef<'tcx>
Implementations
pub fn new(
tcx: TyCtxt<'tcx>,
uv: Unevaluated<'tcx, ()>
) -> Result<Option<AbstractConst<'tcx>>, ErrorReported>
pub fn from_const(
tcx: TyCtxt<'tcx>,
ct: &Const<'tcx>
) -> Result<Option<AbstractConst<'tcx>>, ErrorReported>
Trait Implementations
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for AbstractConst<'tcx>
impl<'tcx> !Send for AbstractConst<'tcx>
impl<'tcx> !Sync for AbstractConst<'tcx>
impl<'tcx> Unpin for AbstractConst<'tcx>
impl<'tcx> !UnwindSafe for AbstractConst<'tcx>
Blanket Implementations
pub fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]
Mutably borrows from an owned value. Read more
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: 24 bytes