That block defines a new trait called Foo
, which then allows you to use the trait in various places such as the impl
block you have posted. The : Bar
part says that any type that implements Foo
must also implement the Bar
trait.
0
solved Traits and Rust