when i saw this code from link never - Rust
what does the colon mean? There is no mention in rust reference book
Traits: Defining Shared Behavior - The Rust Programming Language.
Can anyone explain thanks.
when i saw this code from link never - Rust
It indicates supertraits.
As @Schard mentioned, that marks a supertrait and supertraits are discussed later in the book. The book is intended to be an extended tutorial that leaves some more advanced things to later on, rather than a comprehensive reference. There is a Rust reference, and that has a section on traits, which also discusses supertraits. The reference may be harder to follow if you aren't familiar with all the concepts of Rust yet though.