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> { ... }
}Required Methods§
Provided Methods§
fn as_path(&self) -> CodamaResult<&Path>
fn single_generic_type_from_path(&self, path: &str) -> CodamaResult<&Type>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".