[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1754509722804627.png (151 KB, 752x674)
151 KB
151 KB PNG
what
>>
>>108518910
@grok make this make sense
>>
>OOP
stopped 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.
>>
>>108518910
you know how Java has interfaces and how you can cast implementations of a interface to it? same shit. it's not complex
struct fatptr { data: *mut Data, vtable: *const Fns }

real basic shit.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.