// `A` and `B` are defined in the trait via the `type` keyword.
// (Note: `type` in this context is different from `type` when used for
// aliases).
trait Contains {
type A;
type B;
// Updated syntax to refer to these new types generically.
fn contains(&self, &Self::A, &Self::B) -> bool;
}
Following the rustbyexample, it reads that Note: type
in this context is different from type
when used for aliases .
so I wonder what's the difference? could you explain for me? thank you.