pub type Value<'tcx> = MethodAutoderefStepsResult<'tcx>;

Aliased Type§

struct Value<'tcx> {
    pub steps: &'tcx [CandidateStep<'tcx>],
    pub opt_bad_ty: Option<&'tcx MethodAutoderefBadTy<'tcx>>,
    pub reached_recursion_limit: bool,
}

Fields§

§steps: &'tcx [CandidateStep<'tcx>]

The valid autoderef steps that could be find.

§opt_bad_ty: Option<&'tcx MethodAutoderefBadTy<'tcx>>

If Some(T), a type autoderef reported an error on.

§reached_recursion_limit: bool

If true, steps has been truncated due to reaching the recursion limit.

Trait Implementations§

source§

impl<'tcx> Clone for MethodAutoderefStepsResult<'tcx>

source§

fn clone(&self) -> MethodAutoderefStepsResult<'tcx>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'tcx> Debug for MethodAutoderefStepsResult<'tcx>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'tcx> EraseType for MethodAutoderefStepsResult<'tcx>

§

type Result = [u8; 32]

source§

impl<'tcx, '__ctx> HashStable<StableHashingContext<'__ctx>> for MethodAutoderefStepsResult<'tcx>

source§

fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )

source§

impl<'tcx> Copy for MethodAutoderefStepsResult<'tcx>

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