pub trait TypeExtension {
// Required method
fn get_self(&self) -> &Type;
// Provided methods
fn as_path(&self) -> CodamaResult<&Path> { ... }
fn single_generic_type_from_path(&self, path: &str) -> CodamaResult<&Type> { ... }
}pub trait TypeExtension {
// Required method
fn get_self(&self) -> &Type;
// Provided methods
fn as_path(&self) -> CodamaResult<&Path> { ... }
fn single_generic_type_from_path(&self, path: &str) -> CodamaResult<&Type> { ... }
}