Closed as not planned
Closed as not planned
Description
Generic type/constant parameters can be written like so: <X: MyTrait = MyType>
But what does = MyType
mean? This is not mentioned in the article for Generic Parameters in the Rust Reference: https://doc.rust-lang.org/reference/items/generics.html
It is however, described in the Book: https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#default-generic-type-parameters-and-operator-overloading
Should the Reference include a couple of sentences that help a user know what term they ought to search for more information? For example, something like:
Generic type and constant parameters can specify a default concrete type using the
<GenericType=ConcreteType>
syntax.
Metadata
Metadata
Assignees
Labels
No labels