Expand description
Compute the dyn-compatibility of a trait
StructsΒ§
- Erase
Escaping πBound Regions - Illegal
Rpitit πVisitor - Illegal
Self πType Visitor - Lazy
Features π
EnumsΒ§
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
Selfreferences. - 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_tywhenSelf = self_ty. For example, forreceiver_ty = Rc<Self>andself_ty = Foo, returnsRc<Foo>. - receiver_
is_ πdispatchable - Checks the methodβs receiver (the
selfargument) can be dispatched on whenSelfis a trait object. We require thatDispatchableFromDynbe implemented for the receiver type in the following way: - super_
clauses_ πare_ unconditionally_ const - Checks for
const Traitsupertraits. 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 clauseSelf: Sized.