gccrs: Add checks for Trait functions