pub trait Geometry: Class<PxGeometry> { // Provided method fn get_type(&self) -> GeometryType { ... } }