Deriving PartialEq, Eq and Hash automatically in extern_class! works because it delegates to a msg_send! call to the relevant selector.
#[derive(Debug)], however, prints out the internal variable name as well as helpers that ensure that the type has the correct auto traits, which is really ugly, so we should use some macro hacks to extract and implement it ourselves as a direct delegation to the superclass' Debug instead.
Deriving
PartialEq,EqandHashautomatically inextern_class!works because it delegates to amsg_send!call to the relevant selector.#[derive(Debug)], however, prints out the internal variable name as well as helpers that ensure that the type has the correct auto traits, which is really ugly, so we should use some macro hacks to extract and implement it ourselves as a direct delegation to the superclass'Debuginstead.