pub trait Texture { // Required method fn id(&self) -> i32; // Provided method fn size(&self) -> Size2D<u16, Pixels> { ... } }