Module rustc_typeck::middle::traits
[−]
[src]
Trait Resolution. See the Book for more.
Structs
| DerivedObligationCause | [Unstable] |
| FulfillmentContext |
[Unstable] The fulfillment context is used to drive trait resolution. It
consists of a list of obligations that must be (eventually)
satisfied. The job is to track which are satisfied, which yielded
errors, and which are still pending. At any point, users can call
|
| FulfillmentError | [Unstable] |
| MismatchedProjectionTypes | [Unstable] |
| Normalized | [Unstable] |
| Obligation |
[Unstable] An |
| ObligationCause |
[Unstable] Why did we incur this obligation? Used for error reporting. |
| RegionObligation | [Unstable] |
| SelectionCache | [Unstable] |
| SelectionContext | [Unstable] |
| SupertraitDefIds | [Unstable] |
| VtableBuiltinData | [Unstable] |
| VtableDefaultImplData | [Unstable] |
| VtableImplData |
[Unstable] Identifies a particular impl in the source, along with a set of
substitutions from the impl's type/lifetime parameters. The
|
| VtableObjectData |
[Unstable] A vtable for some object-safe trait |
Enums
| FulfillmentErrorCode | [Unstable] |
| MethodMatchResult | [Unstable] |
| MethodMatchedData | [Unstable] |
| MethodViolationCode |
[Unstable] Reasons a method might not be object-safe. |
| ObjectSafetyViolation | [Unstable] |
| ObligationCauseCode | [Unstable] |
| OrphanCheckErr | [Unstable] |
| SelectionError | [Unstable] |
| Vtable |
[Unstable] Given the successful resolution of an obligation, the |
Functions
| elaborate_predicates | [Unstable] |
| evaluate_builtin_bound |
[Unstable] Determines whether the type |
| fully_normalize | [Unstable] |
| get_vtable_index_of_object_method |
[Unstable] Given an object of type |
| is_object_safe | [Unstable] |
| is_vtable_safe_method |
[Unstable] We say a method is vtable safe if it can be invoked on a trait
object. Note that object-safe traits can have some
non-vtable-safe methods, so long as they require |
| normalize |
[Unstable] Normalizes any associated type projections in |
| normalize_param_env_or_error |
[Unstable] Normalizes the parameter environment, reporting errors if they occur. |
| object_safety_violations | [Unstable] |
| orphan_check |
[Unstable] Checks the coherence orphan rules. |
| overlapping_impls |
[Unstable] True if there exist types that satisfy both of the two given impls. |
| predicate_for_trait_def | [Unstable] |
| predicates_for_generics |
[Unstable] Creates predicate obligations from the generic bounds. |
| report_fulfillment_errors | [Unstable] |
| report_overflow_error |
[Unstable] Reports that an overflow has occurred and halts compilation. We halt compilation unconditionally because it is important that overflows never be masked -- they basically represent computations whose result could not be truly determined and thus we can't say if the program type checks or not -- and they are unusual occurrences in any case. |
| report_selection_error | [Unstable] |
| suggest_new_overflow_limit | [Unstable] |
| supertrait_def_ids | [Unstable] |
| supertraits | [Unstable] |
| trait_ref_for_builtin_bound | [Unstable] |
| transitive_bounds | [Unstable] |
| type_known_to_meet_builtin_bound | [Unstable] |
| upcast |
[Unstable] Cast a trait reference into a reference to one of its super
traits; returns |
Type Definitions
| Obligations | [Unstable] |
| PredicateObligation | [Unstable] |
| PredicateObligations | [Unstable] |
| Selection | [Unstable] |
| SelectionResult | [Unstable] |
| Supertraits | [Unstable] |
| TraitObligation | [Unstable] |
| TraitObligations | [Unstable] |