pub trait SInto<S, To>: PointeeSized {
// Required method
fn sinto(&self, s: &S) -> To;
}
Required Methods§
Implementations on Foreign Types§
Source§impl<'a, S> SInto<S, HirGenericArgs> for GenericArgs<'a>
impl<'a, S> SInto<S, HirGenericArgs> for GenericArgs<'a>
fn sinto(&self, _: &S) -> HirGenericArgs
Source§impl<'a, S: UnderOwnerState<'a>> SInto<S, DisambiguatedDefPathItem> for DisambiguatedDefPathData
impl<'a, S: UnderOwnerState<'a>> SInto<S, DisambiguatedDefPathItem> for DisambiguatedDefPathData
fn sinto(&self, s: &S) -> DisambiguatedDefPathItem
Source§impl<'a, S: UnderOwnerState<'a>, Body: IsBody> SInto<S, ForeignItem<Body>> for ForeignItemId
impl<'a, S: UnderOwnerState<'a>, Body: IsBody> SInto<S, ForeignItem<Body>> for ForeignItemId
fn sinto(&self, s: &S) -> ForeignItem<Body>
Source§impl<'ctx, S: UnderOwnerState<'ctx>> SInto<S, DefPathItem> for DefPathData
impl<'ctx, S: UnderOwnerState<'ctx>> SInto<S, DefPathItem> for DefPathData
fn sinto(&self, s: &S) -> DefPathItem
Source§impl<'tcx, Body, S: UnderOwnerState<'tcx>> SInto<S, FullDefKind<Body>> for DefKindwhere
Body: IsBody + TypeMappable,
impl<'tcx, Body, S: UnderOwnerState<'tcx>> SInto<S, FullDefKind<Body>> for DefKindwhere
Body: IsBody + TypeMappable,
fn sinto(&self, s: &S) -> FullDefKind<Body>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ConstArgKind<Body>> for ConstArgKind<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ConstArgKind<Body>> for ConstArgKind<'tcx>
fn sinto(&self, s: &S) -> ConstArgKind<Body>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ForeignItemKind<Body>> for ForeignItemKind<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ForeignItemKind<Body>> for ForeignItemKind<'tcx>
fn sinto(&self, tcx: &S) -> ForeignItemKind<Body>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, GenericParamKind<Body>> for GenericParamKind<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, GenericParamKind<Body>> for GenericParamKind<'tcx>
fn sinto(&self, tcx: &S) -> GenericParamKind<Body>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ImplItemKind<Body>> for ImplItemKind<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ImplItemKind<Body>> for ImplItemKind<'tcx>
fn sinto(&self, s: &S) -> ImplItemKind<Body>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ItemKind<Body>> for ItemKind<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ItemKind<Body>> for ItemKind<'tcx>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, TraitItemKind<Body>> for TraitItemKind<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, TraitItemKind<Body>> for TraitItemKind<'tcx>
fn sinto(&self, tcx: &S) -> TraitItemKind<Body>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ConstArg<Body>> for ConstArg<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ConstArg<Body>> for ConstArg<'tcx>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ForeignItem<Body>> for ForeignItem<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ForeignItem<Body>> for ForeignItem<'tcx>
fn sinto(&self, tcx: &S) -> ForeignItem<Body>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, GenericParam<Body>> for GenericParam<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, GenericParam<Body>> for GenericParam<'tcx>
fn sinto(&self, s: &S) -> GenericParam<Body>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, Generics<Body>> for Generics<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, Generics<Body>> for Generics<'tcx>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ImplItem<Body>> for ImplItem<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, ImplItem<Body>> for ImplItem<'tcx>
Source§impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, TraitItem<Body>> for TraitItem<'tcx>
impl<'tcx, Body: IsBody, S: UnderOwnerState<'tcx>> SInto<S, TraitItem<Body>> for TraitItem<'tcx>
Source§impl<'tcx, KIND, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, MirBody<KIND>> for Body<'tcx>
impl<'tcx, KIND, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, MirBody<KIND>> for Body<'tcx>
Source§impl<'tcx, S> SInto<S, AssertMessage> for AssertMessage<'tcx>
impl<'tcx, S> SInto<S, AssertMessage> for AssertMessage<'tcx>
fn sinto(&self, _: &S) -> AssertMessage
Source§impl<'tcx, S> SInto<S, BlockSafety> for BlockSafety
impl<'tcx, S> SInto<S, BlockSafety> for BlockSafety
fn sinto(&self, _s: &S) -> BlockSafety
Source§impl<'tcx, S> SInto<S, CoercionSource> for CoercionSource
impl<'tcx, S> SInto<S, CoercionSource> for CoercionSource
fn sinto(&self, _s: &S) -> CoercionSource
Source§impl<'tcx, S> SInto<S, CoverageStatus> for CoverageStatus
impl<'tcx, S> SInto<S, CoverageStatus> for CoverageStatus
fn sinto(&self, _s: &S) -> CoverageStatus
Source§impl<'tcx, S> SInto<S, DeprecatedSince> for DeprecatedSince
impl<'tcx, S> SInto<S, DeprecatedSince> for DeprecatedSince
fn sinto(&self, _s: &S) -> DeprecatedSince
Source§impl<'tcx, S> SInto<S, HostEffectPredicate> for HostEffectPredicate<'tcx>
impl<'tcx, S> SInto<S, HostEffectPredicate> for HostEffectPredicate<'tcx>
fn sinto(&self, _: &S) -> HostEffectPredicate
Source§impl<'tcx, S> SInto<S, InlineAsmOperand> for InlineAsmOperand<'tcx>
impl<'tcx, S> SInto<S, InlineAsmOperand> for InlineAsmOperand<'tcx>
fn sinto(&self, _: &S) -> InlineAsmOperand
Source§impl<'tcx, S> SInto<S, Movability> for Movability
impl<'tcx, S> SInto<S, Movability> for Movability
fn sinto(&self, _s: &S) -> Movability
Source§impl<'tcx, S> SInto<S, NormalizesTo> for NormalizesTo<'tcx>
impl<'tcx, S> SInto<S, NormalizesTo> for NormalizesTo<'tcx>
fn sinto(&self, _: &S) -> NormalizesTo
Source§impl<'tcx, S> SInto<S, WhereEqPredicate> for WhereEqPredicate<'tcx>
impl<'tcx, S> SInto<S, WhereEqPredicate> for WhereEqPredicate<'tcx>
fn sinto(&self, _: &S) -> WhereEqPredicate
Source§impl<'tcx, S> SInto<S, WhereRegionPredicate> for WhereRegionPredicate<'tcx>
impl<'tcx, S> SInto<S, WhereRegionPredicate> for WhereRegionPredicate<'tcx>
fn sinto(&self, _: &S) -> WhereRegionPredicate
Source§impl<'tcx, S> SInto<S, Deprecation> for Deprecation
impl<'tcx, S> SInto<S, Deprecation> for Deprecation
fn sinto(&self, _s: &S) -> Deprecation
Source§impl<'tcx, S> SInto<S, RustcVersion> for RustcVersion
impl<'tcx, S> SInto<S, RustcVersion> for RustcVersion
fn sinto(&self, _s: &S) -> RustcVersion
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, AssocTypeData> for AssocTypeData
impl<'tcx, S: BaseState<'tcx>> SInto<S, AssocTypeData> for AssocTypeData
fn sinto(&self, _tcx: &S) -> AssocTypeData
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, AttributeKind> for AttributeKind
impl<'tcx, S: BaseState<'tcx>> SInto<S, AttributeKind> for AttributeKind
fn sinto(&self, tcx: &S) -> AttributeKind
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, ImplTraitInTraitData> for ImplTraitInTraitData
impl<'tcx, S: BaseState<'tcx>> SInto<S, ImplTraitInTraitData> for ImplTraitInTraitData
fn sinto(&self, _s: &S) -> ImplTraitInTraitData
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, InlineAttr> for InlineAttr
impl<'tcx, S: BaseState<'tcx>> SInto<S, InlineAttr> for InlineAttr
fn sinto(&self, _s: &S) -> InlineAttr
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, LitFloatType> for LitFloatType
impl<'tcx, S: BaseState<'tcx>> SInto<S, LitFloatType> for LitFloatType
fn sinto(&self, gstate: &S) -> LitFloatType
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, LitIntType> for LitIntType
impl<'tcx, S: BaseState<'tcx>> SInto<S, LitIntType> for LitIntType
fn sinto(&self, gstate: &S) -> LitIntType
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, RawPtrKind> for RawPtrKind
impl<'tcx, S: BaseState<'tcx>> SInto<S, RawPtrKind> for RawPtrKind
fn sinto(&self, _s: &S) -> RawPtrKind
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, UnwindAction> for UnwindAction
impl<'tcx, S: BaseState<'tcx>> SInto<S, UnwindAction> for UnwindAction
fn sinto(&self, _s: &S) -> UnwindAction
Source§impl<'tcx, S: BaseState<'tcx>> SInto<S, MetaItemLit> for MetaItemLit
impl<'tcx, S: BaseState<'tcx>> SInto<S, MetaItemLit> for MetaItemLit
fn sinto(&self, tcx: &S) -> MetaItemLit
Source§impl<'tcx, S: ExprState<'tcx>> SInto<S, AdtExprBase> for AdtExprBase<'tcx>
impl<'tcx, S: ExprState<'tcx>> SInto<S, AdtExprBase> for AdtExprBase<'tcx>
fn sinto(&self, gstate: &S) -> AdtExprBase
Source§impl<'tcx, S: UnderBinderState<'tcx>> SInto<S, ClauseKind> for ClauseKind<'tcx>
impl<'tcx, S: UnderBinderState<'tcx>> SInto<S, ClauseKind> for ClauseKind<'tcx>
fn sinto(&self, tcx: &S) -> ClauseKind
Source§impl<'tcx, S: UnderBinderState<'tcx>> SInto<S, PredicateKind> for PredicateKind<'tcx>
impl<'tcx, S: UnderBinderState<'tcx>> SInto<S, PredicateKind> for PredicateKind<'tcx>
fn sinto(&self, tcx: &S) -> PredicateKind
Source§impl<'tcx, S: UnderBinderState<'tcx>> SInto<S, ProjectionPredicate> for ProjectionPredicate<'tcx>
impl<'tcx, S: UnderBinderState<'tcx>> SInto<S, ProjectionPredicate> for ProjectionPredicate<'tcx>
fn sinto(&self, s: &S) -> ProjectionPredicate
Source§impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, AggregateKind> for AggregateKind<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, AggregateKind> for AggregateKind<'tcx>
fn sinto(&self, s: &S) -> AggregateKind
Source§impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, NonDivergingIntrinsic> for NonDivergingIntrinsic<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, NonDivergingIntrinsic> for NonDivergingIntrinsic<'tcx>
fn sinto(&self, s: &S) -> NonDivergingIntrinsic
Source§impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, StatementKind> for StatementKind<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, StatementKind> for StatementKind<'tcx>
fn sinto(&self, s: &S) -> StatementKind
Source§impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, TerminatorKind> for TerminatorKind<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, TerminatorKind> for TerminatorKind<'tcx>
fn sinto(&self, s: &S) -> TerminatorKind
Source§impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, BasicBlockData> for BasicBlockData<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, BasicBlockData> for BasicBlockData<'tcx>
fn sinto(&self, s: &S) -> BasicBlockData
Source§impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, CopyNonOverlapping> for CopyNonOverlapping<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, CopyNonOverlapping> for CopyNonOverlapping<'tcx>
fn sinto(&self, s: &S) -> CopyNonOverlapping
Source§impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, Terminator> for Terminator<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, Terminator> for Terminator<'tcx>
fn sinto(&self, s: &S) -> Terminator
Source§impl<'tcx, S: UnderOwnerState<'tcx> + HasThir<'tcx>> SInto<S, PatRangeBoundary> for PatRangeBoundary<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx> + HasThir<'tcx>> SInto<S, PatRangeBoundary> for PatRangeBoundary<'tcx>
fn sinto(&self, state: &S) -> PatRangeBoundary
Source§impl<'tcx, S: UnderOwnerState<'tcx> + HasThir<'tcx>> SInto<S, Ascription> for Ascription<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx> + HasThir<'tcx>> SInto<S, Ascription> for Ascription<'tcx>
fn sinto(&self, gstate: &S) -> Ascription
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, AliasRelationDirection> for AliasRelationDirection
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, AliasRelationDirection> for AliasRelationDirection
fn sinto(&self, _tcx: &S) -> AliasRelationDirection
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BoundRegionKind> for BoundRegionKind
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BoundRegionKind> for BoundRegionKind
fn sinto(&self, s: &S) -> BoundRegionKind
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BoundTyKind> for BoundTyKind
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BoundTyKind> for BoundTyKind
fn sinto(&self, s: &S) -> BoundTyKind
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BoundVariableKind> for BoundVariableKind
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BoundVariableKind> for BoundVariableKind
fn sinto(&self, tcx: &S) -> BoundVariableKind
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, CanonicalTyVarKind> for CanonicalTyVarKind
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, CanonicalTyVarKind> for CanonicalTyVarKind
fn sinto(&self, gstate: &S) -> CanonicalTyVarKind
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, CanonicalVarInfo> for CanonicalVarKind<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, CanonicalVarInfo> for CanonicalVarKind<'tcx>
fn sinto(&self, gstate: &S) -> CanonicalVarInfo
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ClosureKind> for ClosureKind
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ClosureKind> for ClosureKind
fn sinto(&self, _tcx: &S) -> ClosureKind
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, DiscriminantDefinition> for VariantDiscr
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, DiscriminantDefinition> for VariantDiscr
fn sinto(&self, gstate: &S) -> DiscriminantDefinition
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ExistentialPredicate> for ExistentialPredicate<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ExistentialPredicate> for ExistentialPredicate<'tcx>
fn sinto(&self, state: &S) -> ExistentialPredicate
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, FnRetTy> for FnRetTy<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, FnRetTy> for FnRetTy<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericArg> for GenericArg<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericArg> for GenericArg<'tcx>
fn sinto(&self, s: &S) -> GenericArg
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericArg> for GenericArgKind<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericArg> for GenericArgKind<'tcx>
fn sinto(&self, s: &S) -> GenericArg
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ImplPolarity> for ImplPolarity
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ImplPolarity> for ImplPolarity
fn sinto(&self, tcx: &S) -> ImplPolarity
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, IsAsync> for IsAsync
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, IsAsync> for IsAsync
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, LateParamRegionKind> for LateParamRegionKind
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, LateParamRegionKind> for LateParamRegionKind
fn sinto(&self, s: &S) -> LateParamRegionKind
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, RegionKind> for RegionKind<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, RegionKind> for RegionKind<'tcx>
fn sinto(&self, gstate: &S) -> RegionKind
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Res> for Res
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Res> for Res
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, VariantData> for VariantData<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, VariantData> for VariantData<'tcx>
fn sinto(&self, tcx: &S) -> VariantData
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Vec<GenericArg>> for GenericArgsRef<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Vec<GenericArg>> for GenericArgsRef<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BoundRegion> for BoundRegion
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, BoundRegion> for BoundRegion
fn sinto(&self, s: &S) -> BoundRegion
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, CanonicalUserTypeAnnotation> for CanonicalUserTypeAnnotation<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, CanonicalUserTypeAnnotation> for CanonicalUserTypeAnnotation<'tcx>
fn sinto(&self, gstate: &S) -> CanonicalUserTypeAnnotation
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Clause> for PolyTraitPredicate<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Clause> for PolyTraitPredicate<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, CoercePredicate> for CoercePredicate<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, CoercePredicate> for CoercePredicate<'tcx>
fn sinto(&self, tcx: &S) -> CoercePredicate
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ConstOperand> for ConstOperand<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ConstOperand> for ConstOperand<'tcx>
fn sinto(&self, s: &S) -> ConstOperand
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Decorated<ConstantExprKind>> for Const<'tcx>
This impl is used in THIR patterns.
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Decorated<ConstantExprKind>> for Const<'tcx>
This impl is used in THIR patterns.
fn sinto(&self, s: &S) -> ConstantExpr
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Decorated<ConstantExprKind>> for Const<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, Decorated<ConstantExprKind>> for Const<'tcx>
fn sinto(&self, s: &S) -> ConstantExpr
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, DiscriminantValue> for Discr<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, DiscriminantValue> for Discr<'tcx>
fn sinto(&self, gstate: &S) -> DiscriminantValue
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, EarlyParamRegion> for EarlyParamRegion
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, EarlyParamRegion> for EarlyParamRegion
fn sinto(&self, s: &S) -> EarlyParamRegion
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ExistentialProjection> for ExistentialProjection<TyCtxt<'tcx>>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ExistentialProjection> for ExistentialProjection<TyCtxt<'tcx>>
fn sinto(&self, state: &S) -> ExistentialProjection
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ExistentialTraitRef> for ExistentialTraitRef<TyCtxt<'tcx>>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ExistentialTraitRef> for ExistentialTraitRef<TyCtxt<'tcx>>
fn sinto(&self, state: &S) -> ExistentialTraitRef
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, FnDecl> for FnDecl<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, FnDecl> for FnDecl<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, FnHeader> for FnHeader
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, FnHeader> for FnHeader
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, FnSig> for FnSig<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, FnSig> for FnSig<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericParamDef> for GenericParamDef
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericParamDef> for GenericParamDef
fn sinto(&self, s: &S) -> GenericParamDef
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericPredicates> for GenericPredicates<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, GenericPredicates> for GenericPredicates<'tcx>
fn sinto(&self, s: &S) -> GenericPredicates
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, HirFieldDef> for FieldDef<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, HirFieldDef> for FieldDef<'tcx>
fn sinto(&self, s: &S) -> HirFieldDef
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, LateParamRegion> for LateParamRegion
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, LateParamRegion> for LateParamRegion
fn sinto(&self, s: &S) -> LateParamRegion
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, LocalIdent> for LocalVarId
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, LocalIdent> for LocalVarId
fn sinto(&self, s: &S) -> LocalIdent
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, PathSegment> for PathSegment<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, PathSegment> for PathSegment<'tcx>
fn sinto(&self, s: &S) -> PathSegment
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ReprOptions> for ReprOptions
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ReprOptions> for ReprOptions
fn sinto(&self, s: &S) -> ReprOptions
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, SourceInfo> for SourceInfo
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, SourceInfo> for SourceInfo
fn sinto(&self, s: &S) -> SourceInfo
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, SourceScopeData> for SourceScopeData<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, SourceScopeData> for SourceScopeData<'tcx>
fn sinto(&self, s: &S) -> SourceScopeData
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, SubtypePredicate> for SubtypePredicate<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, SubtypePredicate> for SubtypePredicate<'tcx>
fn sinto(&self, tcx: &S) -> SubtypePredicate
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, TraitPredicate> for TraitPredicate<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, TraitPredicate> for TraitPredicate<'tcx>
fn sinto(&self, tcx: &S) -> TraitPredicate
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, TyGenerics> for Generics
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, TyGenerics> for Generics
fn sinto(&self, state: &S) -> TyGenerics
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, TypeAndMut> for TypeAndMut<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, TypeAndMut> for TypeAndMut<'tcx>
fn sinto(&self, gstate: &S) -> TypeAndMut
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, UsePath> for UsePath<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, UsePath> for UsePath<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, UserSelfTy> for UserSelfTy<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, UserSelfTy> for UserSelfTy<'tcx>
fn sinto(&self, gstate: &S) -> UserSelfTy
Source§impl<'tcx, S: UnderOwnerState<'tcx>, Body: IsBody> SInto<S, Vec<Variant<Body>>> for EnumDef<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>, Body: IsBody> SInto<S, Vec<Variant<Body>>> for EnumDef<'tcx>
Source§impl<'tcx, S: UnderOwnerState<'tcx>, Body: IsBody> SInto<S, Body> for BodyId
impl<'tcx, S: UnderOwnerState<'tcx>, Body: IsBody> SInto<S, Body> for BodyId
Source§impl<'tcx, S: UnderOwnerState<'tcx>, T1, T2> SInto<S, Binder<T2>> for Binder<'tcx, T1>where
T1: SInto<StateWithBinder<'tcx>, T2>,
impl<'tcx, S: UnderOwnerState<'tcx>, T1, T2> SInto<S, Binder<T2>> for Binder<'tcx, T1>where
T1: SInto<StateWithBinder<'tcx>, T2>,
Source§impl<'tcx, S: UnderOwnerState<'tcx>, T, U> SInto<S, OutlivesPredicate<U>> for OutlivesPredicate<'tcx, T>where
T: SInto<S, U>,
impl<'tcx, S: UnderOwnerState<'tcx>, T, U> SInto<S, OutlivesPredicate<U>> for OutlivesPredicate<'tcx, T>where
T: SInto<S, U>,
fn sinto(&self, s: &S) -> OutlivesPredicate<U>
Source§impl<'tcx, S: UnderOwnerState<'tcx>, T: SInto<S, U>, U> SInto<S, Canonical<U>> for Canonical<'tcx, T>
impl<'tcx, S: UnderOwnerState<'tcx>, T: SInto<S, U>, U> SInto<S, Canonical<U>> for Canonical<'tcx, T>
Source§impl<'tcx, S: UnderOwnerState<'tcx>, T: SInto<S, U>, U> SInto<S, Placeholder<U>> for Placeholder<T>
impl<'tcx, S: UnderOwnerState<'tcx>, T: SInto<S, U>, U> SInto<S, Placeholder<U>> for Placeholder<T>
fn sinto(&self, s: &S) -> Placeholder<U>
Source§impl<'x: 'tcx, 'tcx, S: UnderOwnerState<'tcx>> SInto<S, Ty> for Ty<'x>
impl<'x: 'tcx, 'tcx, S: UnderOwnerState<'tcx>> SInto<S, Ty> for Ty<'x>
Source§impl<S> SInto<S, BasicBlock> for BasicBlock
impl<S> SInto<S, BasicBlock> for BasicBlock
fn sinto(&self, _s: &S) -> BasicBlock
Source§impl<S> SInto<S, BorrowKind> for BorrowKind
impl<S> SInto<S, BorrowKind> for BorrowKind
fn sinto(&self, gstate: &S) -> BorrowKind
Source§impl<S> SInto<S, CommentKind> for CommentKind
impl<S> SInto<S, CommentKind> for CommentKind
fn sinto(&self, _s: &S) -> CommentKind
Source§impl<S> SInto<S, CoverageKind> for CoverageKind
impl<S> SInto<S, CoverageKind> for CoverageKind
fn sinto(&self, _: &S) -> CoverageKind
Source§impl<S> SInto<S, Defaultness> for Defaultness
impl<S> SInto<S, Defaultness> for Defaultness
fn sinto(&self, tcx: &S) -> Defaultness
Source§impl<S> SInto<S, ErrorGuaranteed> for ErrorGuaranteed
impl<S> SInto<S, ErrorGuaranteed> for ErrorGuaranteed
fn sinto(&self, _: &S) -> ErrorGuaranteed
Source§impl<S> SInto<S, FakeBorrowKind> for FakeBorrowKind
impl<S> SInto<S, FakeBorrowKind> for FakeBorrowKind
fn sinto(&self, _s: &S) -> FakeBorrowKind
Source§impl<S> SInto<S, FakeReadCause> for FakeReadCause
impl<S> SInto<S, FakeReadCause> for FakeReadCause
fn sinto(&self, _: &S) -> FakeReadCause
Source§impl<S> SInto<S, HeaderSafety> for HeaderSafety
impl<S> SInto<S, HeaderSafety> for HeaderSafety
fn sinto(&self, _s: &S) -> HeaderSafety
Source§impl<S> SInto<S, ImplicitSelfKind> for ImplicitSelfKind
impl<S> SInto<S, ImplicitSelfKind> for ImplicitSelfKind
fn sinto(&self, _s: &S) -> ImplicitSelfKind
Source§impl<S> SInto<S, InlineAsmOptions> for InlineAsmOptions
impl<S> SInto<S, InlineAsmOptions> for InlineAsmOptions
fn sinto(&self, _: &S) -> InlineAsmOptions
Source§impl<S> SInto<S, InlineAsmTemplatePiece> for InlineAsmTemplatePiece
impl<S> SInto<S, InlineAsmTemplatePiece> for InlineAsmTemplatePiece
fn sinto(&self, _: &S) -> InlineAsmTemplatePiece
Source§impl<S> SInto<S, IntegerType> for IntegerType
impl<S> SInto<S, IntegerType> for IntegerType
fn sinto(&self, _: &S) -> IntegerType
Source§impl<S> SInto<S, InvisibleOrigin> for InvisibleOrigin
impl<S> SInto<S, InvisibleOrigin> for InvisibleOrigin
fn sinto(&self, _: &S) -> InvisibleOrigin
Source§impl<S> SInto<S, LifetimeParamKind> for LifetimeParamKind
impl<S> SInto<S, LifetimeParamKind> for LifetimeParamKind
fn sinto(&self, _s: &S) -> LifetimeParamKind
Source§impl<S> SInto<S, MissingLifetimeKind> for MissingLifetimeKind
impl<S> SInto<S, MissingLifetimeKind> for MissingLifetimeKind
fn sinto(&self, _: &S) -> MissingLifetimeKind
Source§impl<S> SInto<S, MutBorrowKind> for MutBorrowKind
impl<S> SInto<S, MutBorrowKind> for MutBorrowKind
fn sinto(&self, _s: &S) -> MutBorrowKind
Source§impl<S> SInto<S, NonMacroAttrKind> for NonMacroAttrKind
impl<S> SInto<S, NonMacroAttrKind> for NonMacroAttrKind
fn sinto(&self, s: &S) -> NonMacroAttrKind
Source§impl<S> SInto<S, PointerCoercion> for PointerCoercion
impl<S> SInto<S, PointerCoercion> for PointerCoercion
fn sinto(&self, gstate: &S) -> PointerCoercion
Source§impl<S> SInto<S, RealFileName> for RealFileName
impl<S> SInto<S, RealFileName> for RealFileName
fn sinto(&self, _s: &S) -> RealFileName
Source§impl<S> SInto<S, SourceScope> for SourceScope
impl<S> SInto<S, SourceScope> for SourceScope
fn sinto(&self, _s: &S) -> SourceScope
Source§impl<S> SInto<S, UnwindTerminateReason> for UnwindTerminateReason
impl<S> SInto<S, UnwindTerminateReason> for UnwindTerminateReason
fn sinto(&self, _: &S) -> UnwindTerminateReason
Source§impl<S> SInto<S, UserTypeAnnotationIndex> for UserTypeAnnotationIndex
impl<S> SInto<S, UserTypeAnnotationIndex> for UserTypeAnnotationIndex
fn sinto(&self, _s: &S) -> UserTypeAnnotationIndex
Source§impl<S> SInto<S, UserTypeProjection> for UserTypeProjection
impl<S> SInto<S, UserTypeProjection> for UserTypeProjection
fn sinto(&self, _: &S) -> UserTypeProjection
Source§impl<S> SInto<S, usize> for FirstStatementIndex
impl<S> SInto<S, usize> for FirstStatementIndex
fn sinto(&self, _: &S) -> FirstStatementIndex
Source§impl<S> SInto<S, BindingMode> for BindingMode
impl<S> SInto<S, BindingMode> for BindingMode
fn sinto(&self, s: &S) -> BindingMode
Source§impl<S> SInto<S, ParamConst> for ParamConst
impl<S> SInto<S, ParamConst> for ParamConst
fn sinto(&self, gstate: &S) -> ParamConst
Source§impl<S> SInto<S, PromotedId> for Promoted
impl<S> SInto<S, PromotedId> for Promoted
fn sinto(&self, _s: &S) -> PromotedId
Source§impl<S, J: Idx, I: Idx + SInto<S, J>, U: Clone, T: SInto<S, U>> SInto<S, IndexVec<J, U>> for IndexSlice<I, T>
impl<S, J: Idx, I: Idx + SInto<S, J>, U: Clone, T: SInto<S, U>> SInto<S, IndexVec<J, U>> for IndexSlice<I, T>
Source§impl<S, T: SInto<S, U>, U> SInto<S, Visibility<U>> for Visibility<T>
impl<S, T: SInto<S, U>, U> SInto<S, Visibility<U>> for Visibility<T>
fn sinto(&self, s: &S) -> Visibility<U>
Implementors§
impl<'s, S: BaseState<'s>> SInto<S, DefId> for DefId
impl<'tcx, S> SInto<S, PathBuf> for PathBuf
impl<'tcx, S: BaseState<'tcx>> SInto<S, DefId> for OwnerId
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, DropData> for DropData<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ImplExprAtom> for ImplExprAtom<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ImplExprPathChunk> for PathChunk<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, DefId> for LocalDefId
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, ImplExpr> for ImplExpr<'tcx>
impl<'tcx, S: UnderOwnerState<'tcx>> SInto<S, PredicateId> for PredicateId
A PredicateId
can be mapped to itself via SInto. This is useful
for mirroring the type [traits::search_clause::PathChunk
] as
traits::ImplExprPathChunk
.