We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ef8d42 + 58f0d72 commit e928297Copy full SHA for e928297
src/doc/reference.md
@@ -3564,8 +3564,9 @@ Each instance of a trait object includes:
3564
each method of `SomeTrait` that `T` implements, a pointer to `T`'s
3565
implementation (i.e. a function pointer).
3566
3567
-The purpose of trait objects is to permit "late binding" of methods. A call to
3568
-a method on a trait object is only resolved to a vtable entry at compile time.
+The purpose of trait objects is to permit "late binding" of methods. Calling a
+method on a trait object results in virtual dispatch at runtime: that is, a
3569
+function pointer is loaded from the trait object vtable and invoked indirectly.
3570
The actual implementation for each vtable entry can vary on an object-by-object
3571
basis.
3572
0 commit comments