The derive
attribute allows certain traits to be automatically implemented for data structures. The reference gives the example:
#[derive(PartialEq, Clone)]
struct Foo<T> {
a: i32,
b: T
}
Is it possible to add your own derivable traits, or are these fixed by the compiler?