Skip to main content

Module dyn_compatibility

Module dyn_compatibility 

Source
Expand description

Compute the dyn-compatibility of a trait

StructsΒ§

EraseEscapingBoundRegions πŸ”’
IllegalRpititVisitor πŸ”’
IllegalSelfTypeVisitor πŸ”’
LazyFeatures πŸ”’

EnumsΒ§

AllowSelfProjections πŸ”’
AssocConstViolation
DynCompatibilityViolation
MethodViolation

FunctionsΒ§

bounds_reference_self πŸ”’
clauses_reference_self πŸ”’
contains_illegal_impl_trait_in_trait πŸ”’
contains_illegal_self_type_reference πŸ”’
Check if the given value contains illegal Self references.
dyn_compatibility_violations
dyn_compatibility_violations_for_assoc_item πŸ”’
dyn_compatibility_violations_for_trait πŸ”’
generics_require_sized_self
predicate_references_self πŸ”’
receiver_for_self_ty πŸ”’
Performs a type instantiation to produce the version of receiver_ty when Self = self_ty. For example, for receiver_ty = Rc<Self> and self_ty = Foo, returns Rc<Foo>.
receiver_is_dispatchable πŸ”’
Checks the method’s receiver (the self argument) can be dispatched on when Self is a trait object. We require that DispatchableFromDyn be implemented for the receiver type in the following way:
super_clauses_are_unconditionally_const πŸ”’
Checks for const Trait supertraits. We’re okay with [const] Trait, supertraits since for a non-const instantiation of that trait, the conditionally-const supertrait is also not required to be const.
super_clauses_have_non_lifetime_binders πŸ”’
trait_has_sized_self πŸ”’
virtual_call_violations_for_method πŸ”’
Returns Some(_) if this method cannot be called on a trait object; this does not necessarily imply that the enclosing trait is dyn-incompatible, because the method might have a where clause Self: Sized.

Type AliasesΒ§

DynCompatibilityViolations