Use trait for doc comment attribute/methods