Please let me know if this question is duplicated in somewhere else here.
I started learning Rust for a while, and understood what is struct and impl, similar to class and its methods in OOP languages.
Yet, I also often heard about trait, which I do not know, searched online but all I get is the topics assuming people who already knew what trait is, or are written for native English speakers (I'm not).
I think the most I get is from Rust By Example, which my own understanding is:
trait is used to define the methods that can be used for any struct, as an additional methods.
Correct me if I misunderstood the true meaning of using trait, and perhaps explain like I'm five . I'm very concern of understanding the common things well in Rust. Thank you.