what
>>108518910@grok make this make sense
>OOPstopped reading
What about it is hard to understand? It's dynamic dispatch. Like interfaces in OOP (the only good part of OOP)
It says everything in plain English. dyn Trait has a pointer that points to the data and another that points to the type basically. This is obviously an oversimplification but that’s about it. The same data can provide different types of information with this.
>>108518910you know how Java has interfaces and how you can cast implementations of a interface to it? same shit. it's not complexstruct fatptr { data: *mut Data, vtable: *const Fns }real basic shit.