All forms of Traits

how many forms of traits in rust, and what is it

when i was reading others code i found different syntax's..

Could you give us examples of the different syntaxes?

The best way to find out what forms something can take is to look at the grammar in the Rust Reference. There’s a table at the front of the book that describes what all of the notation means.

Understanding a formal grammar specification like this can take some effort the first few times, but it’s a skill that will serve you well in the future (assuming you continue programming).

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.